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
|
- name: on recupere getdocker
|
||||||
hosts: localhost
|
get_url:
|
||||||
become: yes # Utiliser l'élévation de privilèges
|
url: http://s-adm.gsb.adm/gsbstore/getdocker.sh
|
||||||
|
dest: /usr/local/bin
|
||||||
|
|
||||||
tasks:
|
- name: on verifie si docker est installe
|
||||||
- name: Télécharger le script getdocker.sh
|
stat:
|
||||||
get_url:
|
path: /usr/bin/docker
|
||||||
url: http://s-adm.gsb.adm/gsbstore/getdocker.sh
|
#command: which docker
|
||||||
dest: /usr/local/bin/getdocker.sh
|
register: docker_present
|
||||||
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: 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