base: try and handle undefined external
Right now we have to add external to everything in iad2, but most of it isn't external at all. This way we can just assume it's not external if it's not defined and just define it on the ones where it's true. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
1e777285e6
commit
174789bad7
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@
|
|||
- base
|
||||
- iptables
|
||||
- blocklist
|
||||
when: "'iad2' not in inventory_hostname or external | bool "
|
||||
when: "'iad2' not in inventory_hostname or (external is defined and external | bool)"
|
||||
|
||||
- name: Setup blocklist update cron job
|
||||
cron:
|
||||
|
@ -189,7 +189,7 @@
|
|||
minute: 15
|
||||
hour: "*/2"
|
||||
job: "/usr/local/bin/blocklist-update.sh force >& /dev/null"
|
||||
when: "'iad2' not in inventory_hostname or external | bool"
|
||||
when: "'iad2' not in inventory_hostname or (external is defined and external | bool)"
|
||||
tags:
|
||||
- base
|
||||
- iptables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue