Validate iptables files before restoring

This commit is contained in:
Till Maas 2015-12-07 20:09:32 +01:00
parent fd9c8ac5a3
commit 1b28aecdcf

View file

@ -145,6 +145,7 @@
- ../templates/iptables/iptables.{{ env }}
- ../templates/iptables/iptables
when: not inventory_hostname.startswith('fed-cloud09')
validate: "/etc/sysconfig/iptables --text %s"
notify:
- restart iptables
- reload libvirtd