mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-02 15:39:57 +00:00
Solved bug when openresty isn't up yet, but conf should be validated
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user