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
|
||||
|
||||
- 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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user