mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2024-09-26 03:42:39 +02:00
change to native ansible iptables flush
This commit is contained in:
parent
bdd2d21dfc
commit
02e9b3607d
@ -17,11 +17,8 @@
|
||||
register: boot_cmdline
|
||||
|
||||
- name: Flush iptables before changing iptables-legacy
|
||||
shell:
|
||||
cmd: 'iptables -F'
|
||||
register: flush_iptables
|
||||
changed_when:
|
||||
- flush_iptables.rc == 0 and flush_iptables.stdout_lines.count == 0
|
||||
iptables:
|
||||
flush: true
|
||||
when:
|
||||
- ansible_facts.distribution_release is search("buster")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user