feat: add nsca server systemd

This commit is contained in:
2022-12-28 20:40:16 +01:00
parent 450f5c0b5a
commit f4bbf46243
2 changed files with 21 additions and 0 deletions

View File

@@ -2,3 +2,10 @@
systemd:
name: icinga2
state: restarted
- name: nsca-ng service reload
systemd:
name: nsca-ng
state: restarted
enabled: yes
daemon_reload: yes

View File

@@ -56,6 +56,20 @@
group: nagios
mode: 0644
- name: Copy nsca systemd unit
copy:
src: nsca-ng.service
dest: /etc/systemd/user/nsca-ng.service
mode: 0644
notify:
- nsca-ng service reload
- name: Enable and start nsca-ng
systemd:
name: nsca-ng.service
state: started
enabled: yes
- name: Copy icinga configuration
copy:
src: "{{ item }}"