Added reset condition for openresty

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-19 17:48:02 +02:00
parent 26b392ea76
commit 82cc24a7f5
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E

View File

@ -1,4 +1,13 @@
--- ---
- name: Wait until OpenResty container is running
command: docker inspect -f '{{.State.Running}}' {{ OPENRESTY_CONTAINER }}
register: openresty_status
retries: 10
delay: 3
until: openresty_status.stdout.strip() == "true"
changed_when: false
listen: restart openresty
- name: Validate OpenResty configuration - name: Validate OpenResty configuration
command: > command: >
docker exec {{ OPENRESTY_CONTAINER }} openresty -t -q docker exec {{ OPENRESTY_CONTAINER }} openresty -t -q