nagios: also make sure the service is running and enabled

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2024-11-21 12:53:00 -08:00
parent 6a1c1e8d6b
commit ef8a734d69

View file

@ -548,3 +548,12 @@
when: selinux_module2 is changed
tags:
- nagios_server
# enable and run the nagios service
- name: enable and run the nagios service
service: name=nagios.service state=started enabled=yes
check_mode: no
failed_when: false
tags:
- config
- nagios_server