Does this work now?

This commit is contained in:
Kevin Fenzi 2015-12-09 18:27:01 +00:00
parent 0d20ddfb4f
commit 82902fd1c0

View file

@ -139,11 +139,11 @@
- name: iptables
template: src={{ item }} dest=/etc/sysconfig/iptables mode=600 backup=yes validate="/usr/sbin/iptables-restore --text %s"
with_first_found:
- ../templates/iptables/iptables.{{ datacenter }}
- ../templates/iptables/iptables.{{ ansible_fqdn }}
- ../templates/iptables/iptables.{{ host_group }}
- ../templates/iptables/iptables.{{ env }}
- ../templates/iptables/iptables
- iptables/iptables.{{ datacenter }}
- iptables/iptables.{{ ansible_fqdn }}
- iptables/iptables.{{ host_group }}
- iptables/iptables.{{ env }}
- iptables/iptables
when: not inventory_hostname.startswith('fed-cloud09')
notify:
- restart iptables
@ -163,11 +163,11 @@
- name: ip6tables
template: src={{ item }} dest=/etc/sysconfig/ip6tables mode=600 backup=yes
with_first_found:
- ../templates/iptables/ip6tables.{{ datacenter }}
- ../templates/iptables/ip6tables.{{ ansible_fqdn }}
- ../templates/iptables/ip6tables.{{ host_group }}
- ../templates/iptables/ip6tables.{{ env }}
- ../templates/iptables/ip6tables
- iptables/ip6tables.{{ datacenter }}
- iptables/ip6tables.{{ ansible_fqdn }}
- iptables/ip6tables.{{ host_group }}
- iptables/ip6tables.{{ env }}
- iptables/ip6tables
when: not inventory_hostname.startswith('fed-cloud09')
notify:
- restart ip6tables