You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

48 lines
932 B

---
- hosts: service
remote_user: "{{ user }}"
gather_facts: no
vars:
user: "zeus"
tasks:
- name: mkdir /usr/local/src
become: true
file:
path: "/usr/local/src"
state: directory
owner: root
group: root
mode: '0755'
- name: wget mpich
become: true
shell: "wget https://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz -O mpich.tar.gz"
args:
chdir: "/usr/local/src"
warn: false
- name: cp script
become: true
copy:
src: "./files/mpich.sh"
dest: "/usr/local/src"
owner: root
group: root
mode: 0750
- name: exec script
become: true
shell: "/bin/bash /usr/local/src/mpich.sh"
args:
chdir: "/usr/local/src"
warn: false
- name: rm dir mpi
become: true
file:
path: "/usr/local/src"
state: absent