mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
hosts: then and if swapped?
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
copy: src={{ item }} dest=/etc/hosts
|
||||
with_first_found: >-
|
||||
{{
|
||||
(hosts_candidates_static + ["vpn"])
|
||||
if (vpn | default(false)) and (datacenter | default('iad2')) != 'iad2'
|
||||
(hosts_candidates_static + ["vpn"])
|
||||
else
|
||||
(hosts_candidates_static + ["base"])
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user