Fix caddy role tasks changed recognition
This commit is contained in:
parent
79c704c1f9
commit
37bd1ed2cd
1 changed files with 7 additions and 2 deletions
|
|
@ -37,6 +37,7 @@
|
|||
become: yes
|
||||
# bringing up the container takes some time, we have to wait
|
||||
until: caddy_container_info['rc'] == 0 and caddy_container_info['stdout'] | length >= 1
|
||||
changed_when: False
|
||||
register: caddy_container_info
|
||||
|
||||
- name: Register caddy container id
|
||||
|
|
@ -51,15 +52,19 @@
|
|||
command: >
|
||||
apk add curl
|
||||
become: yes
|
||||
register: result
|
||||
changed_when: "'Installing' in result.stdout"
|
||||
|
||||
- name: Ensure caddy api is responsive
|
||||
community.docker.docker_container_exec:
|
||||
container: "{{ caddy_container_id }}"
|
||||
command: >
|
||||
curl localhost:2019/config/
|
||||
until: result.rc == 0
|
||||
register: result
|
||||
become: yes
|
||||
until: result.rc == 0
|
||||
when: caddy_use_api == True
|
||||
changed_when: False
|
||||
register: result
|
||||
|
||||
# TODO FIXME UP
|
||||
# - name: Allow access to services
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue