Skip to content

Commit

Permalink
fix: fix proxy config conditions
Browse files Browse the repository at this point in the history
Merge branch 'conditional' of https://github.com/gregfaust/ansible-apt into develop

closes #11
  • Loading branch information
franklinkim committed Aug 18, 2016
2 parents 90bef99 + 97d7eb3 commit 27787e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/etc/apt/apt.conf.d/00proxy.j2
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// {{ ansible_managed }}

{% if apt_http_proxy_address is defined and not apt_http_proxy_address %}
{% if apt_http_proxy_address is defined and apt_http_proxy_address %}
Acquire::http::Proxy "{{ apt_http_proxy_address }}";
{% endif %}
{% if apt_https_proxy_address is defined and not apt_https_proxy_address %}
{% if apt_https_proxy_address is defined and apt_https_proxy_address %}
Acquire::https::Proxy "{{ apt_https_proxy_address }}";
{% endif %}
{% if apt_http_pipeline_depth is defined and not apt_http_pipeline_depth %}
{% if apt_http_pipeline_depth is defined and apt_http_pipeline_depth %}
Acquire::http::Pipeline-Depth "{{ apt_http_pipeline_depth }}";
{% endif %}
{% endif %}

0 comments on commit 27787e8

Please sign in to comment.