diff --git a/roles/nagios_server/tasks/main.yml b/roles/nagios_server/tasks/main.yml index ab66837264..52dbb5f3f7 100644 --- a/roles/nagios_server/tasks/main.yml +++ b/roles/nagios_server/tasks/main.yml @@ -31,9 +31,6 @@ #- nsca-client # TODO: rhel7 - stunnel -- name: Restart and autostart nagios - service: name=nagios state=restarted enabled=yes - # TODO: rhel7 #- name: Restart and autostart nsca # service: name=nsca state=restarted enabled=yes @@ -78,6 +75,9 @@ - name: Install check_nagios_notifications cron cron: name="check_nagios_notifications" minute=0 hour=0 weekday=1 user=nagios job="/usr/local/bin/check_nagios_notifications.py" +- name: Restart and autostart nagios + service: name=nagios state=restarted enabled=yes + #class nagios::server_external inherits nagios::server { # File['/etc/nagios/'] { # source => 'puppet:///nagios/nagios-external/',