self-hosting/roles/icinga2_master/tasks/main.yml

17 lines
459 B
YAML
Raw Normal View History

2025-01-11 12:44:28 +01:00
---
2025-01-12 11:02:58 +01:00
- name: Allow incoming icinga2
become: true
ansible.builtin.copy:
src: nftables/input.d/icinga2.conf
dest: /etc/nftables/input.d/icinga2.conf
mode: 0640
notify: Reload nftables service
2025-01-12 10:32:24 +01:00
- name: Setup Master node
become: true
ansible.builtin.command:
cmd: "icinga2 node setup --master --cn {{ ansible_hostname }} --disable-confd"
creates: "/var/lib/icinga2/certs/{{ ansible_hostname }}.crt"
notify: Restart icinga2 service