only restart nagios if the configuration check passes

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2014-09-27 03:30:41 +00:00
parent 73def7a6c5
commit 2da4e300cb

View file

@ -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