ipa/client: Don't apply hosts role on non-VPN hosts

We don't want a custom /etc/hosts installed on every host, so bring back
the conditional.

Improves commit 7a2024398f.

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2021-04-02 00:11:47 +02:00
parent cdd7d76183
commit 05f399851e

View file

@ -1,5 +1,6 @@
---
- name: Install /etc/hosts for VPN clients
when: "(vpn | default(false)) and (datacenter | default('iad2')) != 'iad2'"
include_role:
name: hosts
apply: