From d4c07ed2674cc3c46e3940129a476f50e1931a2a Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 31 Oct 2013 19:01:39 +0100 Subject: Don't save dynamic rules. These rules are automatically included by third-party servers such as strongSwan or fail2ban. --- roles/common/tasks/firewall.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'roles/common/tasks') diff --git a/roles/common/tasks/firewall.yml b/roles/common/tasks/firewall.yml index d15384a..b1cd9b1 100644 --- a/roles/common/tasks/firewall.yml +++ b/roles/common/tasks/firewall.yml @@ -23,15 +23,15 @@ owner=root group=root mode=0755 -- name: Ensure the firewall is up to date - command: /usr/local/sbin/update-firewall.sh -c - register: rv - changed_when: rv.rc - notify: - - Unsafe firewall update - - name: Make the iptable ruleset persistent copy: src=etc/network/if-pre-up.d/iptables dest=/etc/network/if-pre-up.d/iptables owner=root group=root mode=0755 + +- name: Ensure the firewall is up to date + command: /usr/local/sbin/update-firewall.sh -c + register: rv + # A non-zero return value will make ansible stop and show stderr. This + # is what we want. + changed_when: rv.rc -- cgit v1.2.3