only restart nagios if the configuration check passes
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
73def7a6c5
commit
2da4e300cb
1 changed files with 1 additions and 1 deletions
|
@ -129,4 +129,4 @@
|
|||
command: systemctl daemon-reload
|
||||
|
||||
- name: restart nagios
|
||||
service: name=nagios state=restarted
|
||||
shell: nagios -v /etc/nagios/nagios.cfg && systemctl restart nagios
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue