Solved bug when openresty isn't up yet, but conf should be validated

This commit is contained in:
2025-11-30 19:01:32 +01:00
parent fff7d261a2
commit 0cb9b08e8f

View File

@@ -13,3 +13,8 @@
- name: Restart OpenResty container
command: docker restart {{ OPENRESTY_CONTAINER }}
listen: restart openresty
register: openresty_restart
failed_when: >
openresty_restart.rc != 0 and
('is not running' not in ((openresty_restart.stderr | default('')) | lower)) and
('no such container' not in ((openresty_restart.stderr | default('')) | lower))