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