Skip to content
Snippets Groups Projects
Commit 6b2bcd78 authored by Chris Hines's avatar Chris Hines
Browse files

test for existing ucx_info before attempting to compile ucx

parent 2731eb49
No related branches found
No related tags found
1 merge request!513modifications to playbooks because 1. we're not using ldap 2. we're mounting...
- name: define ucx_src_url
set_fact:
ucx_src_url: "http://consistency0/src/ucx_1_8_0.tar.gz"
when: ucx_src_url is not defined
- name: define slurm_src_url
set_fact:
slurm_src_url: "http://consistency0/src/slurm-{{ slurm_version }}.tar.bz2"
when: slurm_src_url is not defined
- name: Create ucx directory if it does not exist
file:
path: "{{ ucx_src_dir | dirname }}"
state: directory
owner: "{{ ansible_user }}"
group: root
mode: u=rwx,g=rx,o=rx
become: true
- name: remove all install
file:
......@@ -54,50 +42,70 @@
stat: path="{{ slurm_dir }}/bin/srun"
register: stat_srun
- name: define ucx_dir
set_fact:
ucx_dir: "/usr"
when: ucx_dir is not defined
- name: stat ucx
stat:
path: "{{ ucx_dir }}"
path: "{{ ucx_dir }}/bin/ucx_info"
register: stat_ucx
- name: Create ucx directory if it does not exist
file:
path: "{{ ucx_dir }}"
state: directory
owner: root
group: root
mode: u=rwx,g=rx,o=rx
become: true
when: not stat_ucx.stat.exists
- name: download ucx
get_url:
url: "{{ ucx_src_url }}"
checksum: "{{ ucx_src_checksum }}"
dest: "{{ ucx_src_dir | dirname }}/ucx_src"
when: ucx_src_checksum is defined
- name: download ucx
get_url:
url: "{{ ucx_src_url }}"
dest: "{{ ucx_src_dir | dirname }}/ucx_src"
when: ucx_src_checksum is not defined
- name: unarchive ucx
unarchive:
args:
src: "{{ ucx_src_dir | dirname }}/ucx_src"
copy: no
dest: "{{ ucx_src_dir | dirname }}"
creates: "{{ ucx_src_dir }}"
become: true
register: newucx
- name: install ucx
shell: "./contrib/configure-release --prefix={{ ucx_dir }} && make -j8 && make install"
args:
chdir: "{{ ucx_src_dir }}"
creates: "{{ ucx_dir }}/bin/ucx_info"
become: true
# when: not stat_ucx.stat.exists
- block:
- name: define ucx_src_url
set_fact:
ucx_src_url: "http://consistency0/src/ucx_1_8_0.tar.gz"
when: ucx_src_url is not defined
- name: Create ucx directory if it does not exist
file:
path: "{{ ucx_src_dir | dirname }}"
state: directory
owner: "{{ ansible_user }}"
group: root
mode: u=rwx,g=rx,o=rx
become: true
- name: Create ucx directory if it does not exist
file:
path: "{{ ucx_dir }}"
state: directory
owner: root
group: root
mode: u=rwx,g=rx,o=rx
become: true
when: not stat_ucx.stat.exists
- name: download ucx
get_url:
url: "{{ ucx_src_url }}"
checksum: "{{ ucx_src_checksum }}"
dest: "{{ ucx_src_dir | dirname }}/ucx_src"
when: ucx_src_checksum is defined
- name: download ucx
get_url:
url: "{{ ucx_src_url }}"
dest: "{{ ucx_src_dir | dirname }}/ucx_src"
when: ucx_src_checksum is not defined
- name: unarchive ucx
unarchive:
args:
src: "{{ ucx_src_dir | dirname }}/ucx_src"
copy: no
dest: "{{ ucx_src_dir | dirname }}"
creates: "{{ ucx_src_dir }}"
become: true
register: newucx
- name: install ucx
shell: "./contrib/configure-release --prefix={{ ucx_dir }} && make -j8 && make install"
args:
chdir: "{{ ucx_src_dir }}"
creates: "{{ ucx_dir }}/bin/ucx_info"
become: true
# when: not stat_ucx.stat.exists
- name: configure slurm centos
command: "{{ slurm_src_dir }}/configure --prefix={{ slurm_dir }} --with-munge={{ munge_dir }} --enable-pam --with-pmix={{ pmix_dir }} --with-ucx={{ ucx_dir }}"
......
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