mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 10:13:26 +02:00
16 lines
489 B
Django/Jinja
16 lines
489 B
Django/Jinja
<settings>
|
|
{% if system_proxy is defined and system_proxy != '' %}
|
|
<proxies>
|
|
<proxy>
|
|
<active>true</active>
|
|
<protocol>http</protocol>
|
|
<host>{{ system_proxy | urlsplit('hostname') }}</host>
|
|
<port>{{ system_proxy | urlsplit('port') }}</port>
|
|
{% if system_proxy_no_proxy is defined and system_proxy_no_proxy | length > 0 %}
|
|
<nonProxyHosts>{{ system_proxy_no_proxy | join('|') }}</nonProxyHosts>
|
|
{% endif %}
|
|
</proxy>
|
|
</proxies>
|
|
{% endif %}
|
|
</settings>
|