Merge "Correct the test for proxy.http"

This commit is contained in:
Zuul 2019-01-08 16:59:31 +00:00 committed by Gerrit Code Review
commit bc462c83cc
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@
# HELM_VERSION: "{{ version.helm }}" # HELM_VERSION: "{{ version.helm }}"
# CHARTS: "calico,flannel,tiller,kube-dns" # CHARTS: "calico,flannel,tiller,kube-dns"
- name: Kubeadm-AIO image build path with proxy - name: Kubeadm-AIO image build path with proxy
when: proxy.http is defined and (proxy.http | trim != "") when: proxy.http
shell: |- shell: |-
set -e set -e
docker build \ docker build \
@ -70,7 +70,7 @@
chdir: "{{ kubeadm_aio_path.stdout }}/" chdir: "{{ kubeadm_aio_path.stdout }}/"
executable: /bin/bash executable: /bin/bash
- name: Kubeadm-AIO image build path - name: Kubeadm-AIO image build path
when: proxy.http is undefined or (proxy.http | trim == "") when: not proxy.http
shell: |- shell: |-
set -e set -e
docker build \ docker build \

View File

@ -40,13 +40,13 @@
# NOTE: (lamt) Setting up the proxy before installing docker # NOTE: (lamt) Setting up the proxy before installing docker
- name: ensure docker.service.d directory exists - name: ensure docker.service.d directory exists
when: proxy.http is defined and (proxy.http | trim != "") when: proxy.http
file: file:
path: /etc/systemd/system/docker.service.d path: /etc/systemd/system/docker.service.d
state: directory state: directory
- name: proxy | moving proxy systemd unit into place - name: proxy | moving proxy systemd unit into place
when: proxy.http is defined and (proxy.http | trim != "") when: proxy.http
template: template:
src: http-proxy.conf.j2 src: http-proxy.conf.j2
dest: /etc/systemd/system/docker.service.d/http-proxy.conf dest: /etc/systemd/system/docker.service.d/http-proxy.conf