summaryrefslogtreecommitdiffstats
path: root/roles/docker/tasks
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-04-26 10:20:29 -0400
committerScott Dodson <sdodson@redhat.com>2016-04-26 15:14:46 -0400
commit8bbe47fb6dfaead1eb63d94dc780e1e4c37a71d2 (patch)
tree4ca4ce5392031bfb92baa8ef9ea10fabe8352916 /roles/docker/tasks
parentc934467629cdf1369c8e2a080a81dc54f154276a (diff)
downloadopenshift-8bbe47fb6dfaead1eb63d94dc780e1e4c37a71d2.tar.gz
openshift-8bbe47fb6dfaead1eb63d94dc780e1e4c37a71d2.tar.bz2
openshift-8bbe47fb6dfaead1eb63d94dc780e1e4c37a71d2.tar.xz
openshift-8bbe47fb6dfaead1eb63d94dc780e1e4c37a71d2.zip
Don't set empty HTTP_PROXY, HTTPS_PROXY, NO_PROXY values
Diffstat (limited to 'roles/docker/tasks')
-rw-r--r--roles/docker/tasks/main.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index 0414ff21e..e4a31c692 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -75,6 +75,7 @@
dest: /etc/sysconfig/docker
regexp: '^{{ item.reg_conf_var }}=.*$'
line: "{{ item.reg_conf_var }}='{{ item.reg_fact_val }}'"
+ state: "{{ 'present' if item.reg_fact_val != '' else 'absent'}}"
with_items:
- reg_conf_var: HTTP_PROXY
reg_fact_val: "{{ docker_http_proxy | default('') }}"