Skip to content

Commit d51bacd

Browse files
authored
Issue238 - validate configs (#241)
1 parent 301416a commit d51bacd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

handlers/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
name: nginx
88
state: started
99
enabled: yes
10+
notify: "(Handler: All OSs) Check NGINX"
1011

1112
- name: "(Handler: All OSs) Reload NGINX"
12-
service:
13-
name: nginx
14-
state: reloaded
13+
command: "nginx -s reload"
14+
changed_when: false
1515

1616
when:
1717
- nginx_start | bool
@@ -33,3 +33,7 @@
3333
name: unitd
3434
state: started
3535
enabled: yes
36+
37+
- name: "(Handler: All OSs) Check NGINX"
38+
command: "nginx -t"
39+
changed_when: false

0 commit comments

Comments
 (0)