Workaround to a Trusty (sic!) bug.
This commit is contained in:
parent
47934353bb
commit
f9b971c2ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue