Skip to content

Commit 41db09a

Browse files
committed
handler
1 parent 7ba789a commit 41db09a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

handlers/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
name: nginx
99
state: started
1010
enabled: true
11+
notify: "(Handler: All OSs) Check NGINX"
1112

1213
- name: "(Handler: All OSs) Restart NGINX"
1314
service:
@@ -17,3 +18,7 @@
1718
when:
1819
- nginx_start | bool
1920
- not ansible_check_mode
21+
22+
- name: "(Handler: All OSs) Check NGINX"
23+
command: "nginx -t"
24+
changed_when: false

0 commit comments

Comments
 (0)