Unverified Commit 02e9b360 authored by Markus Fischbacher's avatar Markus Fischbacher
Browse files

change to native ansible iptables flush

parent bdd2d21d
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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")