fix problem with zoreide iptables

This commit is contained in:
Claudio Maradonna 2024-03-06 08:58:28 +01:00
parent 73708d5bdc
commit 8630677457
Signed by untrusted user who does not match committer: claudiomaradonna
GPG key ID: 0CBA58694C5680D9

View file

@ -84,18 +84,15 @@
- name: Configure iptables - name: Configure iptables
when: when:
- "zoreide_enabled is true" - 'zoreide_enabled is true'
- "ansible_facts.services['iptables.service'] is defined" - "ansible_facts.services['iptables.service'] is defined"
block: ansible.builtin.iptables:
- name: Allow related and established connections chain: INPUT
ansible.builtin.iptables: protocol: udp
chain: INPUT destination_port: "{{ zoreide_ha_port }}"
protocol: udp ctstate: NEW
destination_port: "{{ zoreide_ha_port }}" jump: ACCEPT
ctstate: NEW comment: Zoreide HA Port
syn: match
jump: ACCEPT
comment: Zoreide HA Port
- name: Save rules with iptables-persistent v6 - name: Save rules with iptables-persistent v6
ansible.builtin.shell: iptables-save > /etc/iptables/rules.v4 ansible.builtin.shell: iptables-save > /etc/iptables/rules.v4