base / iptables: simplify logic
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
03abad159d
commit
f1eaa5d773
1 changed files with 2 additions and 2 deletions
|
@ -167,13 +167,13 @@
|
||||||
tags:
|
tags:
|
||||||
- base
|
- base
|
||||||
- iptables
|
- iptables
|
||||||
when: "'iad2' not in inventory_hostname or ( datacenter == 'iad2' and external == 'true')"
|
when: "'iad2' not in inventory_hostname or external is true"
|
||||||
|
|
||||||
- name: setup blocklist ipset if this is a new install
|
- name: setup blocklist ipset if this is a new install
|
||||||
shell: "/usr/sbin/ipset create blocklist hash:ip; touch /etc/sysconfig/ipset-blocklist"
|
shell: "/usr/sbin/ipset create blocklist hash:ip; touch /etc/sysconfig/ipset-blocklist"
|
||||||
args:
|
args:
|
||||||
creates: /etc/sysconfig/ipset-blocklist
|
creates: /etc/sysconfig/ipset-blocklist
|
||||||
when: "'iad2' not in inventory_hostname or ( datacenter == 'iad2' and external == 'true')"
|
when: "'iad2' not in inventory_hostname or external is true"
|
||||||
tags:
|
tags:
|
||||||
- base
|
- base
|
||||||
- iptables
|
- iptables
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue