diff --git a/tasks/plain-iptables.yml b/tasks/plain-iptables.yml index 87e102d..9eca6b5 100644 --- a/tasks/plain-iptables.yml +++ b/tasks/plain-iptables.yml @@ -56,6 +56,14 @@ register: restart_related_t notify: Restart fail2ban after an iptables restart when: install_iptables_rules_trusty is changed + ignore_errors: true + + - name: Start the iptables service on Trusty explicitly running the sysv script + shell: /etc/init.d/iptables-persistent restart + register: restart_related_t + notify: Restart fail2ban after an iptables restart + when: install_iptables_rules_trusty is changed + ignore_errors: true - name: Start the iptables service immediately after the new rules have been installed, on Debian 7. This can have an impact on other tasks service: name=iptables-persistent state=restarted enabled=yes