diff --git a/kubespray/roles/registry/tasks/registry.yml b/kubespray/roles/registry/tasks/registry.yml index d38e798c..703ee555 100644 --- a/kubespray/roles/registry/tasks/registry.yml +++ b/kubespray/roles/registry/tasks/registry.yml @@ -7,7 +7,7 @@ - name: Install CNI_PLUGIN ansible.builtin.shell: | mkdir -p /opt/cni/bin - wget hostvars[groups['all'][0]]['ip']/cni-plugins-linux-amd64-v1.3.0.tgz /opt/cni/bin/ + wget {{ hostvars[groups['all'][0]]['ip'] }}/cni-plugins-linux-amd64-v1.3.0.tgz /opt/cni/bin/ tar -C /opt/cni/bin/ -vzxf /opt/cni/bin/cni-plugins-linux-amd64-v1.3.0.tgz - name: Load Registry image