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
d8d156b7
Commit
d8d156b7
authored
5 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
LMOD now comes from ubuntu repos. not self compiled
parent
39abc39c
No related branches found
Branches containing commit
No related tags found
1 merge request
!293
Ubuntu
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/lmod/tasks/main.yml
+6
-14
6 additions, 14 deletions
roles/lmod/tasks/main.yml
with
6 additions
and
14 deletions
roles/lmod/tasks/main.yml
+
6
−
14
View file @
d8d156b7
...
@@ -15,16 +15,7 @@
...
@@ -15,16 +15,7 @@
when
:
ansible_os_family == 'RedHat'
when
:
ansible_os_family == 'RedHat'
-
name
:
install lua debian
-
name
:
install lua debian
apt
:
name={{ item }} state=installed
apt
:
name=lmod state=installed
with_items
:
-
lua5.2
-
lua5.2
-
lua-filesystem
-
lua-bitop
-
lua-posix
-
liblua5.2-0
-
liblua5.2-dev
-
tcl
become
:
true
become
:
true
when
:
ansible_os_family == 'Debian'
when
:
ansible_os_family == 'Debian'
...
@@ -36,20 +27,21 @@
...
@@ -36,20 +27,21 @@
-
name
:
Download LMOD
-
name
:
Download LMOD
get_url
:
get_url
:
url=http://consistency0/src/Lmod-{{ lmod_version }}.tar.bz2
url=http://consistency0/src/Lmod-{{ lmod_version }}.tar.bz2
dest={{source_dir}}/Lmod-{{ lmod_version }}.tar.bz2
dest={{
source_dir
}}/Lmod-{{ lmod_version }}.tar.bz2
mode=0444
mode=0444
when
:
not lmodstat.stat.exists
when
:
ansible_os_family == 'RedHat' and
not lmodstat.stat.exists
-
name
:
Uncompress LMOD
-
name
:
Uncompress LMOD
unarchive
:
unarchive
:
src={{ source_dir }}/Lmod-{{ lmod_version }}.tar.bz2
src={{ source_dir }}/Lmod-{{ lmod_version }}.tar.bz2
dest={{ source_dir }}
dest={{ source_dir }}
copy=no
copy=no
creates={{source_dir}}/Lmod-{{ lmod_version }}/README
creates={{
source_dir
}}/Lmod-{{ lmod_version }}/README
when
:
not lmodstat.stat.exists
when
:
ansible_os_family == 'RedHat' and
not lmodstat.stat.exists
-
name
:
Compile and install Lmod
-
name
:
Compile and install Lmod
shell
:
cd {{ source_dir }}/Lmod-{{ lmod_version }}; ./configure --prefix={{ soft_dir }} --with-mpathSearch=YES --with-caseIndependentSorting=YES && make install LUA_INCLUDE={{ lua_include }}
shell
:
cd {{ source_dir }}/Lmod-{{ lmod_version }}; ./configure --prefix={{ soft_dir }} --with-mpathSearch=YES --with-caseIndependentSorting=YES && make install LUA_INCLUDE={{ lua_include }}
args
:
args
:
creates
:
"
{{
soft_dir
}}/lmod/{{
lmod_version
}}"
creates
:
"
{{
soft_dir
}}/lmod/{{
lmod_version
}}"
become
:
true
become
:
true
when
:
ansible_os_family == 'RedHat'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Andreas Hamacher
@handreas
mentioned in commit
cd92e51b
·
4 years ago
mentioned in commit
cd92e51b
mentioned in commit cd92e51b20fe2a31e697f84ca61b2bec1b74a7ca
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