Issue238 - validate configs (#241)

This commit is contained in:
Tom Gamull 2020-04-21 14:52:31 -04:00 committed by GitHub
parent 301416a9c9
commit d51bacda43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,11 +7,11 @@
name: nginx name: nginx
state: started state: started
enabled: yes enabled: yes
notify: "(Handler: All OSs) Check NGINX"
- name: "(Handler: All OSs) Reload NGINX" - name: "(Handler: All OSs) Reload NGINX"
service: command: "nginx -s reload"
name: nginx changed_when: false
state: reloaded
when: when:
- nginx_start | bool - nginx_start | bool
@ -33,3 +33,7 @@
name: unitd name: unitd
state: started state: started
enabled: yes enabled: yes
- name: "(Handler: All OSs) Check NGINX"
command: "nginx -t"
changed_when: false