fix task ordering; ensure docker is running before networks will be created
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Robert Kaussow 2020-06-15 21:37:21 +02:00
parent 87f2cbdd2e
commit 411b417a08
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -51,6 +51,12 @@
- /etc/subuid
- /etc/subgid
- name: Ensure docker engine is up and running
service:
name: "{{ dockerengine_service }}"
enabled: True
state: started
- name: Create docker networks
docker_network:
name: "{{ item.name }}"
@ -63,11 +69,5 @@
loop_control:
label: "{{ item.name }}"
notify: __docker_restart
- name: Ensure docker engine is up and running
service:
name: "{{ dockerengine_service }}"
enabled: True
state: started
become: True
become_user: root