Skip to content

Commit

Permalink
Fix failure when not using airgap (#370)
Browse files Browse the repository at this point in the history
* Fix failure when not using airgap

Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola authored Oct 8, 2024
1 parent 1cfe597 commit 99fa632
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/airgap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 99fa632

Please sign in to comment.