From 356a920e4e7a70995343f3689b74b2888d1468b1 Mon Sep 17 00:00:00 2001 From: Roger Welin Date: Tue, 21 Mar 2017 10:02:15 +0100 Subject: [PATCH] adding flushing iptables to reset role --- roles/reset/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/reset/tasks/main.yml b/roles/reset/tasks/main.yml index 4df86ea2a..95de34fff 100644 --- a/roles/reset/tasks/main.yml +++ b/roles/reset/tasks/main.yml @@ -49,6 +49,9 @@ command: umount {{item}} with_items: '{{ mounted_dirs.stdout_lines }}' +- name: flush iptables + command: "iptables --flush" + - name: reset | delete some files and directories file: path: "{{ item }}"