Petr Michalec | 10462bb | 2017-03-23 19:18:08 +0100 | [diff] [blame] | 1 | |
| 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 Noskov | 2896b72 | 2017-03-28 17:29:02 +0400 | [diff] [blame] | 14 | ftp_proxy="{{ ftp_proxy }}" |
| 15 | FTP_PROXY="{{ ftp_proxy }}" |
Petr Michalec | 10462bb | 2017-03-23 19:18:08 +0100 | [diff] [blame] | 16 | {%- endif %} |
| 17 | |
| 18 | {%- if http_proxy and http_proxy.lower() != 'none' %} |
Alexander Noskov | 2896b72 | 2017-03-28 17:29:02 +0400 | [diff] [blame] | 19 | http_proxy="{{ http_proxy }}" |
| 20 | HTTP_PROXY="{{ http_proxy }}" |
Petr Michalec | 10462bb | 2017-03-23 19:18:08 +0100 | [diff] [blame] | 21 | {%- endif %} |
| 22 | |
| 23 | {%- if https_proxy and https_proxy.lower() != 'none' %} |
Alexander Noskov | 2896b72 | 2017-03-28 17:29:02 +0400 | [diff] [blame] | 24 | https_proxy="{{ https_proxy }}" |
| 25 | HTTPS_PROXY="{{ https_proxy }}" |
Petr Michalec | 10462bb | 2017-03-23 19:18:08 +0100 | [diff] [blame] | 26 | {%- endif %} |
| 27 | |
| 28 | {%- if no_proxy %} |
Alexander Noskov | 2896b72 | 2017-03-28 17:29:02 +0400 | [diff] [blame] | 29 | no_proxy="{{ no_proxy|join(',') }}" |
| 30 | NO_PROXY="{{ no_proxy|join(',') }}" |
Petr Michalec | 10462bb | 2017-03-23 19:18:08 +0100 | [diff] [blame] | 31 | {%- endif %} |
| 32 | |