Skip to content

Commit

Permalink
Merge branch '601-fix-no_proxy-variable-on-cluster-environment' into …
Browse files Browse the repository at this point in the history
…'master'

Resolve "[ITOPS-1021] Fix no_proxy variable on cluster environment"

Closes #601

See merge request teamwire/devops/platform!509
  • Loading branch information
tw-alexb committed Aug 21, 2023
2 parents 83381ac + 9e5576f commit 59e5be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
- name: NPRX_18 Don't access localhost and local services via proxy
lineinfile:
dest: /etc/environment
line: "no_proxy=127.0.0.1,{{ groups['all'] | map('extract', hostvars, ['private_ip']) | join(',') | sort if groups['all']| length() > 1 }}{{ ',' + groups['all'] | join(',') + ',localhost,.consul' if groups['all']| length() > 1 else 'localhost' }}{{ ',teamwire.vpn' if teamwire_platform_dir is defined }}" # noqa line-length var-spacing
line: "no_proxy=127.0.0.1,{{ groups['all'] | sort | map('extract', hostvars, 'private_ip') | join(',') if groups['all'] | length > 1 }}{{ ',' + groups['all'] | sort | join(',') + ',localhost,.consul' if groups['all'] | length > 1 else 'localhost' }}{{ ',teamwire.vpn' if teamwire_platform_dir is defined }}"
when:
- http_proxy is defined
- nprx_18 | default(true)
Expand Down

0 comments on commit 59e5be3

Please sign in to comment.