Fix failure when not using airgap (#370)

* Fix failure when not using airgap

Signed-off-by: Derek Nola <derek.nola@suse.com>
pull/372/head
Derek Nola 2024-10-08 14:57:08 -07:00 committed by GitHub
parent 1cfe59728a
commit 99fa632acb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -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: