virthost: only do vpn when it's set.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-03-12 03:25:29 +00:00
parent 312e933c89
commit 680a4a3eef
2 changed files with 2 additions and 1 deletions

View file

@ -1,2 +1,3 @@
---
virthost: true
vpn: true

View file

@ -26,7 +26,7 @@
- collectd/base
- { role: iscsi_client, when: "inventory_hostname.startswith(('bvirthost', 'buildvmhost'))" }
- sudo
- { role: openvpn/client, when: datacenter != "phx2" or datacenter != "cloud" }
- { role: openvpn/client, when: vpn }
- virthost
tasks: