diff --git a/roles/docker/tasks/glpi-10.0.11.tgz b/roles/docker/tasks/glpi-10.0.11.tgz new file mode 100644 index 0000000..42fc3c0 Binary files /dev/null and b/roles/docker/tasks/glpi-10.0.11.tgz differ diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 40a521b..9e944ac 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -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