Start configuration of zones.d
This commit is contained in:
parent
b71d4e6eb2
commit
2dfd6bdfcd
2 changed files with 13 additions and 0 deletions
|
@ -7,8 +7,10 @@
|
|||
- role: common_handlers
|
||||
tags: always
|
||||
- role: setup_nftables
|
||||
tags: nftables
|
||||
tasks:
|
||||
- name: Install required packages
|
||||
tags: install
|
||||
become: true
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
|
@ -25,6 +27,7 @@
|
|||
- role: common_handlers
|
||||
tags: always
|
||||
- role: icinga2_master
|
||||
tags: master
|
||||
|
||||
- name: Setup Icinga2 agent
|
||||
gather_facts: true
|
||||
|
@ -33,3 +36,4 @@
|
|||
- role: common_handlers
|
||||
tags: always
|
||||
- role: icinga2_agent
|
||||
tags: agent
|
||||
|
|
|
@ -27,3 +27,12 @@
|
|||
cmd: "icinga2 node setup --master --cn {{ ansible_hostname }} --disable-confd"
|
||||
creates: "/var/lib/icinga2/certs/{{ ansible_hostname }}.crt"
|
||||
notify: Restart icinga2 service
|
||||
|
||||
- name: Create master zone directory
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /etc/icinga2/zones.d/master
|
||||
state: directory
|
||||
owner: nagios
|
||||
group: nagios
|
||||
mode: 0750
|
||||
|
|
Loading…
Add table
Reference in a new issue