modif docker install
This commit is contained in:
parent
8b59a5553f
commit
15e57a4a40
@ -1,16 +1,13 @@
|
||||
---
|
||||
- name: Supprime le fichier getdocker.sh si déjà présent
|
||||
file:
|
||||
state: absent
|
||||
path: /tmp/getdocker.sh
|
||||
- name: on recupere getdocker
|
||||
get_url:
|
||||
url: http://s-adm.gsb.adm/gsbstore/getdocker.sh
|
||||
dest: /usr/local/bin
|
||||
|
||||
- name: Télécharge le script d'installation de docker
|
||||
uri:
|
||||
url: 'https://get.docker.com'
|
||||
method: GET
|
||||
dest: /tmp/getdocker.sh
|
||||
mode: a+x
|
||||
register: result
|
||||
- name: on verifie si docker est installe
|
||||
command: which docker
|
||||
register: docker_present
|
||||
|
||||
- name: Execution du script getdocker
|
||||
shell: bash /tmp/getdocker.sh
|
||||
- name: Execution du script getdocker si docker n'est pas deja installe
|
||||
shell: bash /usr/local/bin/getdocker.sh
|
||||
when: docker_present.stdout.find('/usr/bin/docker') == -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user