hosts: then and if swapped?

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-04-01 16:16:23 -07:00
parent 05f399851e
commit b8f411c96b

View file

@ -20,8 +20,8 @@
copy: src={{ item }} dest=/etc/hosts copy: src={{ item }} dest=/etc/hosts
with_first_found: >- with_first_found: >-
{{ {{
(hosts_candidates_static + ["vpn"])
if (vpn | default(false)) and (datacenter | default('iad2')) != 'iad2' if (vpn | default(false)) and (datacenter | default('iad2')) != 'iad2'
(hosts_candidates_static + ["vpn"])
else else
(hosts_candidates_static + ["base"]) (hosts_candidates_static + ["base"])
}} }}