mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-23 18:10:17 +08:00
only restart nagios if the configuration check passes
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user