mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-26 00:22:36 +01:00
Fix failure when not using airgap (#370)
* Fix failure when not using airgap Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -40,6 +40,9 @@
|
|||||||
- files:
|
- files:
|
||||||
- "{{ airgap_dir }}/k3s-{{ k3s_arch }}"
|
- "{{ airgap_dir }}/k3s-{{ k3s_arch }}"
|
||||||
- "{{ airgap_dir }}/k3s"
|
- "{{ 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
|
- name: Distribute K3s SELinux RPM
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
@@ -80,6 +83,9 @@
|
|||||||
- "{{ airgap_dir }}/k3s-airgap-images-{{ k3s_arch }}.tar.zst"
|
- "{{ 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.gz"
|
||||||
- "{{ airgap_dir }}/k3s-airgap-images-{{ k3s_arch }}.tar"
|
- "{{ 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]
|
- name: Run K3s Install [server]
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
|
|||||||
Reference in New Issue
Block a user