Workaround to a Trusty (sic!) bug.

This commit is contained in:
Andrea Dell'Amico 2022-05-24 13:06:25 +02:00
parent 47934353bb
commit f9b971c2ce
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 8 additions and 0 deletions

View File

@ -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