Allow icinga2 in nftables

This commit is contained in:
Tunui Franken 2025-01-12 11:02:58 +01:00
parent 00462515b6
commit 844590f845
3 changed files with 15 additions and 0 deletions

View file

@ -4,6 +4,8 @@
gather_facts: false
hosts: all
roles:
- role: common_handlers
tags: always
- role: setup_nftables
tasks:
- name: Install required packages
@ -20,10 +22,14 @@
gather_facts: true
hosts: lime2servers
roles:
- role: common_handlers
tags: always
- role: icinga2_master
- name: Setup Icinga2 agent
gather_facts: true
hosts: mailservers
roles:
- role: common_handlers
tags: always
- role: icinga2_agent

View file

@ -0,0 +1 @@
tcp dport 5665 accept comment "Allow Icinga2 from all"

View file

@ -1,5 +1,13 @@
---
- 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
- name: Setup Master node
become: true
ansible.builtin.command: