mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-03 19:58:14 +00:00 
			
		
		
		
	Added reset condition for openresty
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user