Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
damaca committed Oct 22, 2017
1 parent e7e31c5 commit 3e65748
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@

- name: wait some seconds to finish bootstrap
pause:
seconds: 20
seconds: 30
when: inventory_hostname == ansible_play_batch[0] and BOOTSTRAP_NEEDED
17 changes: 16 additions & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,22 @@
retries: 5
delay: 10

- name: wait some seconds
pause:
seconds: 60
when: inventory_hostname == ansible_play_batch[0] and BOOTSTRAP_NEEDED

- name: mariadb container
docker_container:
name: mariadb
state: absent
when: inventory_hostname == ansible_play_batch[0] and BOOTSTRAP_NEEDED

- name: wait some seconds
pause:
seconds: 30
when: inventory_hostname == ansible_play_batch[0] and BOOTSTRAP_NEEDED

- name: mariadb container
docker_container:
name: mariadb
Expand All @@ -53,7 +69,6 @@
docker_api_version: "{{ docker_api_version }}"
restart_policy: always
network_mode: host
recreate: true
env:
MYSQL_ROOT_PASSWORD: "{{mysql_root_pass}}"
MYSQL_INITDB_SKIP_TZINFO: "yes"
Expand Down

0 comments on commit 3e65748

Please sign in to comment.