From 8a3ccd056c7b9c1d1b8a8558a13d302471de58c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=9B=88=20=EB=B3=80?= Date: Tue, 20 Feb 2024 14:47:23 +0900 Subject: [PATCH] Update registry.yml --- kubespray/roles/registry/tasks/registry.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kubespray/roles/registry/tasks/registry.yml b/kubespray/roles/registry/tasks/registry.yml index cfa89883..d38e798c 100644 --- a/kubespray/roles/registry/tasks/registry.yml +++ b/kubespray/roles/registry/tasks/registry.yml @@ -7,7 +7,8 @@ - name: Install CNI_PLUGIN ansible.builtin.shell: | mkdir -p /opt/cni/bin - tar -C /opt/cni/bin/ -vzxf /var/www/html/files_repo/cni-plugins-linux-amd64-v1.3.0.tgz + 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 ansible.builtin.shell: | @@ -23,4 +24,4 @@ msg: | "Registry Address : {{ hostvars[groups['all'][0]]['ip'] }}:5000" "TEST : curl {{ hostvars[groups['all'][0]]['ip'] }}:5000/v2/_catalog" - "Web UI : http://{{ hostvars[groups['all'][0]]['ip'] }}:8888" \ No newline at end of file + "Web UI : http://{{ hostvars[groups['all'][0]]['ip'] }}:8888"