mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 08:48:33 +01:00
feat: add nsca server systemd
This commit is contained in:
@@ -2,3 +2,10 @@
|
|||||||
systemd:
|
systemd:
|
||||||
name: icinga2
|
name: icinga2
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: nsca-ng service reload
|
||||||
|
systemd:
|
||||||
|
name: nsca-ng
|
||||||
|
state: restarted
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
|
|||||||
@@ -56,6 +56,20 @@
|
|||||||
group: nagios
|
group: nagios
|
||||||
mode: 0644
|
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
|
- name: Copy icinga configuration
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user