--- - name: ⏳ Wait until OpenResty container is running shell: > container inspect --type container -f '{{ "{{.State.Running}}" }}' {{ OPENRESTY_CONTAINER_ADDRESS }} register: openresty_running changed_when: false until: openresty_running.stdout | trim == "true" retries: 24 delay: 5 - name: ✅ Validate OpenResty configuration (Post-Flight-Check) shell: > container exec {{ OPENRESTY_CONTAINER_ADDRESS }} openresty -t -q register: openresty_test_post changed_when: false failed_when: openresty_test_post.rc != 0