blob: 0ffa7e1344b744584b0d34145252ea319a99155e [file] [log] [blame]
Petr Michalec10462bb2017-03-23 19:18:08 +01001
2{%- for name,value in variables.iteritems() if not name.lower().endswith('_proxy') %}
3
4{%- if value is sequence and value is not string %}
5{{ name }}="{{ value|join(':') }}"
6
7{%- else %}
8{{ name }}="{{ value }}"
9
10{%- endif %}
11{%- endfor %}
12
13{%- if ftp_proxy and ftp_proxy.lower() != 'none' %}
Alexander Noskov2896b722017-03-28 17:29:02 +040014ftp_proxy="{{ ftp_proxy }}"
15FTP_PROXY="{{ ftp_proxy }}"
Petr Michalec10462bb2017-03-23 19:18:08 +010016{%- endif %}
17
18{%- if http_proxy and http_proxy.lower() != 'none' %}
Alexander Noskov2896b722017-03-28 17:29:02 +040019http_proxy="{{ http_proxy }}"
20HTTP_PROXY="{{ http_proxy }}"
Petr Michalec10462bb2017-03-23 19:18:08 +010021{%- endif %}
22
23{%- if https_proxy and https_proxy.lower() != 'none' %}
Alexander Noskov2896b722017-03-28 17:29:02 +040024https_proxy="{{ https_proxy }}"
25HTTPS_PROXY="{{ https_proxy }}"
Petr Michalec10462bb2017-03-23 19:18:08 +010026{%- endif %}
27
28{%- if no_proxy %}
Alexander Noskov2896b722017-03-28 17:29:02 +040029no_proxy="{{ no_proxy|join(',') }}"
30NO_PROXY="{{ no_proxy|join(',') }}"
Petr Michalec10462bb2017-03-23 19:18:08 +010031{%- endif %}
32