ansible-roles/roles/system_proxy/templates/proxy.sh.j2

11 lines
352 B
Plaintext
Raw Normal View History

2021-12-01 19:13:34 +01:00
#!/bin/bash
{% if system_proxy is defined and system_proxy != '' %}
2022-02-09 17:00:06 +01:00
{% for proto in system_proxy_proto %}
2022-02-10 13:00:05 +01:00
export {{ proto | lower }}_proxy={{ system_proxy }}
2022-02-09 17:00:06 +01:00
export {{ proto | upper }}_PROXY={{ system_proxy }}
{% endfor %}
2021-12-01 19:13:34 +01:00
export no_proxy='{{ system_proxy_no_proxy | join(',') }}'
export NO_PROXY='{{ system_proxy_no_proxy | join(',') }}'
{% endif %}