From 552ee76b4e21f535ac8238e4948e6acd187bbf3b Mon Sep 17 00:00:00 2001 From: ByeonJungHun Date: Tue, 20 Feb 2024 15:01:56 +0900 Subject: [PATCH] =?UTF-8?q?cni=5Fplugin=20install=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kubespray/roles/registry/tasks/registry.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kubespray/roles/registry/tasks/registry.yml b/kubespray/roles/registry/tasks/registry.yml index 703ee555..564b0772 100644 --- a/kubespray/roles/registry/tasks/registry.yml +++ b/kubespray/roles/registry/tasks/registry.yml @@ -4,11 +4,15 @@ src: "{{ role_path }}/files/images" dest: /tmp/ +- name: Copy CNI_PLUGIN + ansible.posix.synchronize: + src: "/var/www/html/files_repo/cni-plugins-linux-amd64-v1.3.0.tgz" + dest: /tmp/cni-plugins-linux-amd64-v1.3.0.tgz + - 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/ - tar -C /opt/cni/bin/ -vzxf /opt/cni/bin/cni-plugins-linux-amd64-v1.3.0.tgz + tar -C /opt/cni/bin/ -vzxf /tmp/cni-plugins-linux-amd64-v1.3.0.tgz - name: Load Registry image ansible.builtin.shell: | @@ -24,4 +28,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" + "Web UI : http://{{ hostvars[groups['all'][0]]['ip'] }}:8888" \ No newline at end of file