From 3bc260450121c3d08c4ff572bf20759d8346bdee Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Wed, 20 May 2020 14:30:12 -0400 Subject: [PATCH] use this vpn variable we set --- playbooks/groups/download.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/groups/download.yml b/playbooks/groups/download.yml index 0884a58967..7aa2ba5786 100644 --- a/playbooks/groups/download.yml +++ b/playbooks/groups/download.yml @@ -40,7 +40,7 @@ - { role: nfs/client, when: datacenter == "phx2", mnt_dir: '/mnt/koji/compose', nfs_src_dir: 'fedora_koji/koji/compose' } # needed for internal sync - { role: nfs/client, when: datacenter == "rdu", mnt_dir: '/srv/pub', nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub' } - sudo - - { role: openvpn/client, when: datacenter != "phx2" or datacenter != "iad2" } + - { role: openvpn/client, when: hostvars[inventory_hostname].vpn == True } pre_tasks: - include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README