2022-06-06 20:25:38 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Configure monitoring for vhost
|
|
|
|
template:
|
|
|
|
src: http.j2
|
|
|
|
dest: /etc/icinga2/conf.d/hosts/{{ inventory_hostname }}.http_{{ vhost }}
|
|
|
|
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
|
2022-06-06 20:25:38 +02:00
|
|
|
# validate: /usr/sbin/icinga2 daemon -c %s --validate
|
|
|
|
notify: Restart icinga2
|
|
|
|
delegate_to: "{{ icinga_server }}"
|