mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Don't modify existing airgap k3s-install script (#372)
* Check for existing k3s install script during airgap deployment Signed-off-by: Derek Nola <derek.nola@suse.com> * Update vagrant file to newer OS Signed-off-by: Derek Nola <derek.nola@suse.com> --------- Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -8,9 +8,18 @@
|
||||
that: "ansible_version.full is version_compare('2.12', '>=')"
|
||||
msg: "The Airgap role requires at least ansible-core 2.12"
|
||||
|
||||
- name: Check for existing install script
|
||||
become: false
|
||||
delegate_to: localhost
|
||||
ansible.builtin.stat:
|
||||
path: "{{ airgap_dir + '/k3s-install.sh' }}"
|
||||
register: host_install_script
|
||||
|
||||
- name: Download k3s install script
|
||||
become: false
|
||||
delegate_to: localhost
|
||||
# Workaround for https://github.com/ansible/ansible/issues/64016
|
||||
when: not host_install_script.stat.exists
|
||||
ansible.builtin.get_url:
|
||||
url: https://get.k3s.io/
|
||||
timeout: 120
|
||||
|
||||
Reference in New Issue
Block a user