From b6e21a18cc6b57d62684604af4ada70b955be15b Mon Sep 17 00:00:00 2001 From: Cody Seavey Date: Thu, 28 May 2020 08:42:03 -0500 Subject: [PATCH] Modify the populate no_proxy task to use a combine rather than relying on the hash_behaviour setting to be set to merge rather than replace (#6112) --- roles/kubespray-defaults/tasks/no_proxy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/kubespray-defaults/tasks/no_proxy.yml b/roles/kubespray-defaults/tasks/no_proxy.yml index 73fa0bbfa..82613882d 100644 --- a/roles/kubespray-defaults/tasks/no_proxy.yml +++ b/roles/kubespray-defaults/tasks/no_proxy.yml @@ -26,6 +26,7 @@ - name: Populates no_proxy to all hosts set_fact: no_proxy: "{{ hostvars.localhost.no_proxy_prepare }}" - proxy_env: - no_proxy: "{{ hostvars.localhost.no_proxy_prepare }}" - NO_PROXY: "{{ hostvars.localhost.no_proxy_prepare }}" + proxy_env: "{{ proxy_env | combine({ + 'no_proxy': hostvars.localhost.no_proxy_prepare, + 'NO_PROXY': hostvars.localhost.no_proxy_prepare + }) }}"