mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 19:38:32 +01:00
feat: add nsca server systemd
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user