make icinga2 systemd service modifications to centos version
This commit is contained in:
parent
279b4e10f0
commit
7bfa5fa8d1
|
@ -0,0 +1,2 @@
|
||||||
|
[Service]
|
||||||
|
Restart=on-failure
|
|
@ -20,7 +20,16 @@
|
||||||
packages:
|
packages:
|
||||||
- icinga2
|
- icinga2
|
||||||
- nagios-plugins-all
|
- nagios-plugins-all
|
||||||
|
- name: Ensure icinga2 systemd folder exists
|
||||||
|
file:
|
||||||
|
path: /etc/systemd/system/icinga2.service.d/
|
||||||
|
state: directory
|
||||||
|
- name: Copy custom icinga2 systemd service file modifications
|
||||||
|
copy:
|
||||||
|
src: restart.conf
|
||||||
|
dest: /etc/systemd/system/icinga2.service.d/restart.conf
|
||||||
- name: Ensure that icinga2 systemd service is enabled
|
- name: Ensure that icinga2 systemd service is enabled
|
||||||
systemd:
|
systemd:
|
||||||
name: icinga2
|
name: icinga2
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
|
|
Loading…
Reference in New Issue