diff --git a/roles/hpcsystems/tasks/main.yml b/roles/hpcsystems/tasks/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..4500f696e1cb277e3fa00c14f96eaffe8fae627e --- /dev/null +++ b/roles/hpcsystems/tasks/main.yml @@ -0,0 +1,46 @@ +--- +- name: install system dependencies + yum: name={{ item }} state=installed + with_items: + - openssl-devel + - openldap-devel + - python-pip + become: true + become_user: root + when: ansible_os_family == "RedHat" + +- name: install system dependencies + apt: name={{ item }} state=installed + with_items: + - libssl-dev + - libldap2-dev + become: true + become_user: root + when: ansible_os_family == "Debian" + +- name: install merypytools + pip: + name: "git+https://gitlab.erc.monash.edu.au/hpc-team/mercpytools.git#egg=mercpytools" + extra_args: "--upgrade" + become: true + become_user: root + +- name: create install dir + file: name={{ item }} state=directory owner={{ ansible_user }} + with_items: + - "/usr/local/hpcsystem" + - "/usr/local/hpcsystem_config" + become: true + become_user: root + + +- name: install hpcsystem + git: + repo: git@gitlab.erc.monash.edu.au:hpc-team/hpcsystem.git + dest: /usr/local/hpcsystem + +- name: install hpcsystem_config + git: + repo: git@gitlab.erc.monash.edu.au:hpc-team/m3_hpcsystem_config.git + dest: /usr/local/hpcsystem_config + accept_hostkey: True