From 99fa632acb713758c8ee376e2a6cc9d03404914c Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Tue, 8 Oct 2024 14:57:08 -0700 Subject: [PATCH] Fix failure when not using airgap (#370) * Fix failure when not using airgap Signed-off-by: Derek Nola --- roles/airgap/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/airgap/tasks/main.yml b/roles/airgap/tasks/main.yml index 12342bfa..928d8f0b 100644 --- a/roles/airgap/tasks/main.yml +++ b/roles/airgap/tasks/main.yml @@ -40,6 +40,9 @@ - files: - "{{ airgap_dir }}/k3s-{{ k3s_arch }}" - "{{ airgap_dir }}/k3s" + # with_first_found always runs, even inside the when block + # so we need to skip it if the file is not found + skip: true - name: Distribute K3s SELinux RPM ansible.builtin.copy: @@ -80,6 +83,9 @@ - "{{ airgap_dir }}/k3s-airgap-images-{{ k3s_arch }}.tar.zst" - "{{ airgap_dir }}/k3s-airgap-images-{{ k3s_arch }}.tar.gz" - "{{ airgap_dir }}/k3s-airgap-images-{{ k3s_arch }}.tar" + # with_first_found always runs, even inside the when block + # so we need to skip it if the file is not found + skip: true - name: Run K3s Install [server] ansible.builtin.command: