Skip to content
Snippets Groups Projects
Commit 1c365c65 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

Merge remote-tracking branch 'origin/master' into upcomingMaintenance

parents 4a7a32e2 9d51d636
No related branches found
No related tags found
1 merge request!460Upcoming maintenance
...@@ -23,22 +23,56 @@ ...@@ -23,22 +23,56 @@
stat: path="{{ slurm_dir }}/bin/srun" stat: path="{{ slurm_dir }}/bin/srun"
register: stat_srun register: stat_srun
- name: stat ucx
stat: path="/usr/local/ucx/"
register: stat_ucx
- name: Create ucx directory if it does not exist
ansible.builtin.file:
path: /usr/local/ucx/
state: directory
owner: damienl
group: systems
mode: '0755'
become: true
when: not stat_ucx.stat.exists
- name: unarchive ucx
unarchive:
args:
src: "http://consistency0/src/ucx_1_8_0.tar.gz"
copy: no
dest: /usr/local/ucx/
creates: /usr/local/ucx/1.8.0
become: true
register: newucx
- name: symlink ucx to latest
ansible.builtin.file:
src: /usr/local/ucx/1.8.0
dest: /usr/local/ucx/latest
state: link
owner: damienl
group: systems
mode: '0755'
become: true
when: newucx.changed
- name: configure slurm centos - name: configure slurm centos
command: /tmp/slurm-{{ slurm_version }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix=/usr/local/pmix/latest command: /tmp/slurm-{{ slurm_version }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix=/usr/local/pmix/latest --with-ucx=/usr/local/ucx/1.8.0
args: args:
creates: "{{ slurm_dir }}/bin/srun" creates: "{{ slurm_dir }}/bin/srun"
chdir: /tmp/slurm-{{ slurm_version }} chdir: /tmp/slurm-{{ slurm_version }}
when: when:
- force_slurm_recompile is defined or not stat_srun.stat.exists - force_slurm_recompile is defined or not stat_srun.stat.exists
- ansible_os_family == 'RedHat' - ansible_os_family == 'RedHat'
- name: configure slurm ubuntu - name: configure slurm ubuntu
command: /tmp/slurm-{{ slurm_version }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix command: /tmp/slurm-{{ slurm_version }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix --with-ucx
args: args:
creates: "{{ slurm_dir }}/bin/srun" creates: "{{ slurm_dir }}/bin/srun"
chdir: /tmp/slurm-{{ slurm_version }} chdir: /tmp/slurm-{{ slurm_version }}
when: when:
- force_slurm_recompile is defined or not stat_srun.stat.exists - force_slurm_recompile is defined or not stat_srun.stat.exists
- ansible_os_family == 'Debian' - ansible_os_family == 'Debian'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment