mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
THE HUGE REFACTORING CALENDER WEEK 33; Optimized Matrix and during this updated variables, and implemented better reset and cleanup mode handling, also solved some initial setup bugs
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
---
|
||||
- name: Validate OpenResty configuration
|
||||
command: >
|
||||
docker exec {{ openresty_container }} openresty -t -q
|
||||
docker exec {{ OPENRESTY_CONTAINER }} openresty -t -q
|
||||
register: openresty_test
|
||||
changed_when: false
|
||||
failed_when: openresty_test.rc != 0
|
||||
failed_when: >
|
||||
openresty_test.rc != 0 and
|
||||
('is not running' not in ((openresty_test.stderr | default('')) | lower)) and
|
||||
('no such container' not in ((openresty_test.stderr | default('')) | lower))
|
||||
listen: restart openresty
|
||||
|
||||
- name: Restart OpenResty container
|
||||
command: docker restart {{ openresty_container }}
|
||||
command: docker restart {{ OPENRESTY_CONTAINER }}
|
||||
listen: restart openresty
|
||||
|
Reference in New Issue
Block a user