Skip to content

Commit

Permalink
Modify the populate no_proxy task to use a combine rather than relyin…
Browse files Browse the repository at this point in the history
…g on the hash_behaviour setting to be set to merge rather than replace (#6112)
  • Loading branch information
codyseavey authored May 28, 2020
1 parent f959cc2 commit b6e21a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions roles/kubespray-defaults/tasks/no_proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}) }}"

0 comments on commit b6e21a1

Please sign in to comment.