diff options
author | 2024-08-30 18:54:09 +0100 | |
---|---|---|
committer | 2024-08-30 18:54:09 +0100 | |
commit | 7d1cceb27108883fbe4d7cb2aef321eeec9623dd (patch) | |
tree | 33987513aa07a8d22374e95f880f075c6188d66b | |
parent | Add Munin port 4949 to wireguard allow list for nftables hosts (diff) |
Setup firewall rule for Rocky hosts in munin-node
-rw-r--r-- | ansible/roles/munin-node/tasks/main.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ansible/roles/munin-node/tasks/main.yml b/ansible/roles/munin-node/tasks/main.yml index 9c9026e..bbc1671 100644 --- a/ansible/roles/munin-node/tasks/main.yml +++ b/ansible/roles/munin-node/tasks/main.yml @@ -6,6 +6,18 @@ tags: - role::munin-node +- name: Create firewall rule for Rocky Linux Munin nodes + ansible.posix.firewalld: + service: "munin-node" + permanent: true + zone: wireguard + state: enabled + tags: + - role::munin-node + when: ansible_distribution == "Rocky" + notify: + - Reload the firewall + - name: Template munin-node configuration file template: src: munin-node.conf.j2 |