fix problem with zoreide iptables
This commit is contained in:
parent
73708d5bdc
commit
8630677457
1 changed files with 8 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue