From 86306774573192896c46bb939e8aba1f09bb21f7 Mon Sep 17 00:00:00 2001 From: Claudio Maradonna Date: Wed, 6 Mar 2024 08:58:28 +0100 Subject: [PATCH] fix problem with zoreide iptables --- roles/zoreide/tasks/main.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/roles/zoreide/tasks/main.yml b/roles/zoreide/tasks/main.yml index 2250095..d513729 100644 --- a/roles/zoreide/tasks/main.yml +++ b/roles/zoreide/tasks/main.yml @@ -84,18 +84,15 @@ - name: Configure iptables when: - - "zoreide_enabled is true" + - 'zoreide_enabled is true' - "ansible_facts.services['iptables.service'] is defined" - block: - - name: Allow related and established connections - ansible.builtin.iptables: - chain: INPUT - protocol: udp - destination_port: "{{ zoreide_ha_port }}" - ctstate: NEW - syn: match - jump: ACCEPT - comment: Zoreide HA Port + ansible.builtin.iptables: + chain: INPUT + protocol: udp + destination_port: "{{ zoreide_ha_port }}" + ctstate: NEW + jump: ACCEPT + comment: Zoreide HA Port - name: Save rules with iptables-persistent v6 ansible.builtin.shell: iptables-save > /etc/iptables/rules.v4