Fix logic handling for use_hyperkube_cni
This commit is contained in:
parent
d0867c8d03
commit
b69d5f6e6e
1 changed files with 2 additions and 2 deletions
|
@ -36,12 +36,12 @@
|
||||||
- name: Calico | Install calico cni bin
|
- name: Calico | Install calico cni bin
|
||||||
command: rsync -piu "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico"
|
command: rsync -piu "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: not use_hyperkube_cni
|
when: use_hyperkube_cni|bool == false
|
||||||
|
|
||||||
- name: Calico | Install calico-ipam cni bin
|
- name: Calico | Install calico-ipam cni bin
|
||||||
command: rsync -piu "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico-ipam"
|
command: rsync -piu "{{ local_release_dir }}/calico/bin/calico" "/opt/cni/bin/calico-ipam"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: not use_hyperkube_cni
|
when: use_hyperkube_cni|bool == false
|
||||||
|
|
||||||
- name: Calico | Copy cni plugins from hyperkube
|
- name: Calico | Copy cni plugins from hyperkube
|
||||||
command: "/usr/bin/docker run --rm -v /opt/cni/bin:/cnibindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -r /opt/cni/bin/. /cnibindir/"
|
command: "/usr/bin/docker run --rm -v /opt/cni/bin:/cnibindir {{ hyperkube_image_repo }}:{{ hyperkube_image_tag }} /bin/cp -r /opt/cni/bin/. /cnibindir/"
|
||||||
|
|
Loading…
Reference in a new issue