From f9b971c2cef6017e4325f0d56302bc6ee8cbbccf Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 24 May 2022 13:06:25 +0200 Subject: [PATCH] Workaround to a Trusty (sic!) bug. --- tasks/plain-iptables.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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