From dbfd006e6767c77ed9424c784729f3adc70c345b Mon Sep 17 00:00:00 2001 From: sgarg Date: Tue, 24 Dec 2024 18:19:48 +0530 Subject: [PATCH] fix: fixing k3s uninstallation failures when k3s is installed via airgap role --- 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: