maj docker
This commit is contained in:
parent
df9d3c6c1c
commit
b146170467
BIN
roles/docker/tasks/glpi-10.0.11.tgz
Normal file
BIN
roles/docker/tasks/glpi-10.0.11.tgz
Normal file
Binary file not shown.
@ -1,21 +1,16 @@
|
||||
---
|
||||
- name: Récupérer et installer Docker
|
||||
hosts: localhost
|
||||
become: yes # Utiliser l'élévation de privilèges
|
||||
- name: on recupere getdocker
|
||||
get_url:
|
||||
url: http://s-adm.gsb.adm/gsbstore/getdocker.sh
|
||||
dest: /usr/local/bin
|
||||
|
||||
tasks:
|
||||
- name: Télécharger le script getdocker.sh
|
||||
get_url:
|
||||
url: http://s-adm.gsb.adm/gsbstore/getdocker.sh
|
||||
dest: /usr/local/bin/getdocker.sh
|
||||
mode: 'a+x'
|
||||
|
||||
- name: Vérifier si Docker est installé
|
||||
stat:
|
||||
path: /usr/bin/docker
|
||||
register: docker_present
|
||||
|
||||
- name: Installer Docker si absent
|
||||
command: "bash /usr/local/bin/getdocker.sh"
|
||||
when: not docker_present.stat.exists
|
||||
- name: on verifie si docker est installe
|
||||
stat:
|
||||
path: /usr/bin/docker
|
||||
#command: which docker
|
||||
register: docker_present
|
||||
|
||||
- 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
|
||||
when: not docker_present.stat.exists
|
||||
|
Loading…
x
Reference in New Issue
Block a user