2024-03-02 21:01:42 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Configure monitoring for disk
|
|
|
|
template:
|
|
|
|
src: disk.j2
|
|
|
|
dest: /etc/icinga2/conf.d/hosts/{{ inventory_hostname }}.disk
|
|
|
|
owner: "{{ icinga_user }}"
|
|
|
|
group: "{{ icinga_group }}"
|
|
|
|
delegate_to: "{{ icinga_server }}"
|
|
|
|
|
|
|
|
- name: Regenerate hosts.conf
|
|
|
|
assemble:
|
|
|
|
src: /etc/icinga2/conf.d/hosts
|
2024-10-28 00:30:16 +01:00
|
|
|
dest: /etc/icinga2/zones.d/master/hosts.conf
|
2024-03-02 21:01:42 +01:00
|
|
|
# validate: /usr/sbin/icinga2 daemon -c %s --validate
|
|
|
|
notify: Restart icinga2
|
|
|
|
delegate_to: "{{ icinga_server }}"
|