From 8bbe47fb6dfaead1eb63d94dc780e1e4c37a71d2 Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Tue, 26 Apr 2016 10:20:29 -0400 Subject: Don't set empty HTTP_PROXY, HTTPS_PROXY, NO_PROXY values --- roles/docker/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/docker') 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('') }}" -- cgit v1.2.3