From e3603884a78462dfb46ed3aefa297a47b756a431 Mon Sep 17 00:00:00 2001 From: Saksham Garg <65821779+SakshamAbhi@users.noreply.github.com> Date: Fri, 27 Dec 2024 23:43:00 +0530 Subject: [PATCH] fix: fixing k3s uninstallation failures when k3s is installed via airgap role (#384) Signed-off-by: SakshamAbhi Co-authored-by: sgarg --- roles/airgap/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/airgap/tasks/main.yml b/roles/airgap/tasks/main.yml index 092335f9..db30a49b 100644 --- a/roles/airgap/tasks/main.yml +++ b/roles/airgap/tasks/main.yml @@ -97,6 +97,7 @@ skip: true - name: Run K3s Install [server] + when: inventory_hostname in groups['server'] ansible.builtin.command: cmd: /usr/local/bin/k3s-install.sh environment: @@ -105,6 +106,7 @@ changed_when: true - name: Run K3s Install [agent] + when: inventory_hostname in groups['agent'] ansible.builtin.command: cmd: /usr/local/bin/k3s-install.sh environment: