Skip to content
Snippets Groups Projects
Commit a81efd6b authored by Baptiste DE RENZO's avatar Baptiste DE RENZO
Browse files

Merge branch 't39923-interactive-shell-proxy' into 'main'

Add proxy configuration for interactive shells | refs #39923

See merge request sys/ansible-public!101
parents 5e5020fe 9ddc8c6a
Branches master stable
No related tags found
No related merge requests found
......@@ -4,11 +4,6 @@
- name: "MANDATORY PROXY CONFIGURATION"
hosts: all
gather_facts: false
# The following vars are defined empty to bypass the role defaults and avoid deploying examples if omitted
vars:
proxy_http: ""
proxy_https: ""
proxy_exclude: []
roles:
- system/proxy
......
# Proxy set if defined in /etc/environment
for proxy_var in $(grep -iE '^(https?|no)_proxy' /etc/environment); do
export "${proxy_var}"
done
......@@ -72,4 +72,12 @@
- name: https.proxy
value: "{{ proxy_https }}"
- name: "Configure proxy for interactive shells"
ansible.builtin.copy:
src: "set_proxy.sh"
dest: "/etc/profile.d/set_proxy.sh"
owner: root
group: root
mode: '644'
...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment