test playbook docker
This commit is contained in:
parent
b104d23495
commit
16af48fbf3
@ -5,9 +5,12 @@
|
||||
dest: /usr/local/bin
|
||||
|
||||
- name: on verifie si docker est installe
|
||||
command: which docker
|
||||
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: docker_present.stdout.find('/usr/bin/docker') == -1
|
||||
when: not docker_present.stat.exists
|
||||
|
@ -21,11 +21,11 @@
|
||||
|
||||
- name: Copie de dynamic.yml
|
||||
copy:
|
||||
src: dynamic.yml
|
||||
src: dynamic.yml
|
||||
dest: /root/nxc/config
|
||||
|
||||
- name: Copie de docker-compose.yml
|
||||
copy:
|
||||
copy:
|
||||
src: docker-compose.yml
|
||||
dest: /root/nxc
|
||||
|
||||
@ -75,7 +75,8 @@
|
||||
|
||||
- name: création du réseau proxy
|
||||
command: docker network create proxy
|
||||
when: net_proxy.stdout.find('proxy') == -1
|
||||
# when: net_proxy.stdout.find('proxy') == -1
|
||||
when: "'proxy' not in net_proxy.stdout"
|
||||
|
||||
#- name: Démarrage du docker-compose...
|
||||
#command: /bin/bash docker-compose up -d
|
||||
|
Loading…
x
Reference in New Issue
Block a user