diff --git a/roles/docker/templates/rh_docker.repo.j2 b/roles/docker/templates/rh_docker.repo.j2 index bc711d7fe..e783c0ddf 100644 --- a/roles/docker/templates/rh_docker.repo.j2 +++ b/roles/docker/templates/rh_docker.repo.j2 @@ -4,4 +4,4 @@ baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg -{% if http_proxy %}proxy={{ http_proxy }}{% endif %} +{% if http_proxy is defined %}proxy={{ http_proxy }}{% endif %}