From 05f399851e01300c996139ffae64b4f7e3794dca Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Fri, 2 Apr 2021 00:11:47 +0200 Subject: [PATCH] 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 7a2024398f223a49fc061576512fe2619bfc1d02. Signed-off-by: Nils Philippsen --- roles/ipa/client/tasks/vpn.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ipa/client/tasks/vpn.yml b/roles/ipa/client/tasks/vpn.yml index 32a4e2c502..6293618a81 100644 --- a/roles/ipa/client/tasks/vpn.yml +++ b/roles/ipa/client/tasks/vpn.yml @@ -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: