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: claudiomaradonna
GPG Key ID: 0CBA58694C5680D9
1 changed files with 8 additions and 11 deletions

View File

@ -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