Skip to content
Snippets Groups Projects
main.yml 1.13 KiB
Newer Older
---
- 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
    accept_hostkey: True

- 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