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,16 +84,13 @@
- 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:
- name: Allow related and established connections
ansible.builtin.iptables: ansible.builtin.iptables:
chain: INPUT chain: INPUT
protocol: udp protocol: udp
destination_port: "{{ zoreide_ha_port }}" destination_port: "{{ zoreide_ha_port }}"
ctstate: NEW ctstate: NEW
syn: match
jump: ACCEPT jump: ACCEPT
comment: Zoreide HA Port comment: Zoreide HA Port