Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
5bb27ab0
Commit
5bb27ab0
authored
4 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
fixing modules on debian
parent
a59e7f57
No related branches found
No related tags found
2 merge requests
!310
Gpu2
,
!304
Gpu
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
roles/enable_modules/tasks/main.yml
+15
-1
15 additions, 1 deletion
roles/enable_modules/tasks/main.yml
roles/lmod/tasks/main.yml
+3
-3
3 additions, 3 deletions
roles/lmod/tasks/main.yml
roles/modulefiles/tasks/main.yml
+2
-2
2 additions, 2 deletions
roles/modulefiles/tasks/main.yml
with
20 additions
and
6 deletions
roles/enable_modules/tasks/main.yml
+
15
−
1
View file @
5bb27ab0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
-
name
:
make sure environment modules are installed
-
name
:
make sure environment modules are installed
package
:
package
:
name
:
environment-modules
name
:
environment-modules
state
:
installed
state
:
present
become
:
true
become
:
true
-
name
:
template lmod bash
-
name
:
template lmod bash
...
@@ -30,6 +30,9 @@
...
@@ -30,6 +30,9 @@
become_user
:
root
become_user
:
root
when
:
default_modules == "lmod"
when
:
default_modules == "lmod"
# vars:
# MODULESHOMEvar: '/usr/share/modules'
-
name
:
template modulecmd bash
-
name
:
template modulecmd bash
template
:
src=modulecmd.sh.j2 dest=/etc/profile.d/modulecmd.sh
template
:
src=modulecmd.sh.j2 dest=/etc/profile.d/modulecmd.sh
become
:
true
become
:
true
...
@@ -59,3 +62,14 @@
...
@@ -59,3 +62,14 @@
become
:
true
become
:
true
become_user
:
root
become_user
:
root
when
:
default_modules == "modulecmd"
when
:
default_modules == "modulecmd"
-
name
:
Create a symbolic link
file
:
src
:
/usr/share/modules
dest
:
/usr/share/Modules
owner
:
root
group
:
root
state
:
link
mode
:
u=rwx,g=rx,o=rx
become
:
true
when
:
ansible_os_family == 'Debian' and default_modules == 'modulecmd'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
roles/lmod/tasks/main.yml
+
3
−
3
View file @
5bb27ab0
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
-
include_vars
:
"
{{
ansible_os_family
}}.yml"
-
include_vars
:
"
{{
ansible_os_family
}}.yml"
-
name
:
install lua centos
-
name
:
install lua centos
yum
:
name={{ item }} state=
installed
update_cache=yes
yum
:
name={{ item }} state=
present
update_cache=yes
with_items
:
with_items
:
-
lua
-
lua
-
lua-filesystem
-
lua-filesystem
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
when
:
ansible_os_family == 'RedHat'
when
:
ansible_os_family == 'RedHat'
-
name
:
install lua RHEL7
-
name
:
install lua RHEL7
yum
:
name={{ item }} state=
installed
update_cache=yes enablerepo="Monash_University_EPEL7_EPEL_7_-_x86_64"
yum
:
name={{ item }} state=
present
update_cache=yes enablerepo="Monash_University_EPEL7_EPEL_7_-_x86_64"
with_items
:
with_items
:
-
lua
-
lua
-
lua-filesystem
-
lua-filesystem
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
become
:
true
become
:
true
-
name
:
install lua debian
-
name
:
install lua debian
apt
:
name=lmod state=
installed
apt
:
name=lmod state=
present
become
:
true
become
:
true
when
:
ansible_os_family == 'Debian'
when
:
ansible_os_family == 'Debian'
...
...
This diff is collapsed.
Click to expand it.
roles/modulefiles/tasks/main.yml
+
2
−
2
View file @
5bb27ab0
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
args
:
args
:
dest
:
/usr/share/Modules/init/.modulespath
dest
:
/usr/share/Modules/init/.modulespath
line
:
/usr/local/Modules/modulefiles
line
:
/usr/local/Modules/modulefiles
ignore_errors
:
tru
e
ignore_errors
:
fals
e
become
:
true
become
:
true
when
:
ansible_os_family == 'RedHat'
when
:
ansible_os_family == 'RedHat'
...
@@ -24,6 +24,6 @@
...
@@ -24,6 +24,6 @@
args
:
args
:
dest
:
/usr/share/modules/init/.modulespath
dest
:
/usr/share/modules/init/.modulespath
line
:
/usr/local/Modules/modulefiles
line
:
/usr/local/Modules/modulefiles
ignore_errors
:
tru
e
ignore_errors
:
fals
e
become
:
true
become
:
true
when
:
ansible_os_family == 'Debian'
when
:
ansible_os_family == 'Debian'
This diff is collapsed.
Click to expand it.
Andreas Hamacher
@handreas
mentioned in commit
bd7c31ad
·
4 years ago
mentioned in commit
bd7c31ad
mentioned in commit bd7c31ad27a3d92c430739aea972c1b2a0d09cd4
Toggle commit list
Andreas Hamacher
@handreas
mentioned in commit
0f7ad74f
·
4 years ago
mentioned in commit
0f7ad74f
mentioned in commit 0f7ad74f6d2f7c1f74bdf793adfe68c71120984e
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment