Fix caddy container info delay

Give more time to docker to correctly bring up caddy in the swarm.
Extended delay to retry to 10 seconds and gave it more retries as well,
so that roughly a minute will be gone before the play gives up.
This commit is contained in:
Marty Oehme 2021-10-20 17:33:23 +02:00
parent 16767a2f44
commit f4864c5da3
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -37,6 +37,8 @@
become: yes become: yes
# bringing up the container takes some time, we have to wait # bringing up the container takes some time, we have to wait
until: caddy_container_info['rc'] == 0 and caddy_container_info['stdout'] | length >= 1 until: caddy_container_info['rc'] == 0 and caddy_container_info['stdout'] | length >= 1
retries: 5
delay: 10
changed_when: False changed_when: False
register: caddy_container_info register: caddy_container_info