mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
change to native ansible iptables flush
This commit is contained in:
@@ -17,11 +17,8 @@
|
|||||||
register: boot_cmdline
|
register: boot_cmdline
|
||||||
|
|
||||||
- name: Flush iptables before changing iptables-legacy
|
- name: Flush iptables before changing iptables-legacy
|
||||||
shell:
|
iptables:
|
||||||
cmd: 'iptables -F'
|
flush: true
|
||||||
register: flush_iptables
|
|
||||||
changed_when:
|
|
||||||
- flush_iptables.rc == 0 and flush_iptables.stdout_lines.count == 0
|
|
||||||
when:
|
when:
|
||||||
- ansible_facts.distribution_release is search("buster")
|
- ansible_facts.distribution_release is search("buster")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user