nagios: also make sure the service is running and enabled
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
6a1c1e8d6b
commit
ef8a734d69
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue