From 6fe03c5f70b79cd5e9534999cedfedfa3216ee54 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Fri, 9 Oct 2026 14:37:30 +0000 Subject: [PATCH] Skip the cilium CLI download when it is installed already --- .../tasks/install/server/network-plugin/deploy_cilium.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kubernetes/tasks/install/server/network-plugin/deploy_cilium.yml b/kubernetes/tasks/install/server/network-plugin/deploy_cilium.yml index 184fd06..b7bd819 100644 --- a/kubernetes/tasks/install/server/network-plugin/deploy_cilium.yml +++ b/kubernetes/tasks/install/server/network-plugin/deploy_cilium.yml @@ -4,6 +4,11 @@ ignore_errors: true run_once: true +- name: Check if the Cilium CLI is installed + stat: + path: /usr/local/bin/cilium + register: cilium_cli + - name: Get Cilium CLI version ansible.builtin.command: argv: @@ -36,7 +41,8 @@ remote_src: yes #extra_opts: ["--strip-components=1"] mode: 777 - when: cilium_cli_version.stdout is defined + # An installed CLI is left alone, not upgraded to the latest release + when: cilium_cli_version.stdout is defined and not cilium_cli.stat.exists become: yes - name: Clean up temporary files