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

9 lines
255 B
YAML
Raw Normal View History

2025-01-11 12:44:28 +01:00
---
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