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:
Kevin Fenzi 2025-04-28 12:26:09 -07:00
parent 1e777285e6
commit 174789bad7

View file

@ -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