mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2026-03-09 12:02:11 +01:00
Fix airgap agent install
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -26,13 +26,20 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
- name: Download K3s and install binary
|
- name: Set skip_download var for install script
|
||||||
|
# noqa var-naming[no-role-prefix]
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
skip_download: "false"
|
||||||
|
|
||||||
|
# We always run the install script, we just skip the download step as needed
|
||||||
|
- name: Run K3s install script
|
||||||
# noqa var-naming[no-role-prefix]
|
# noqa var-naming[no-role-prefix]
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: /usr/local/bin/k3s-install.sh
|
cmd: /usr/local/bin/k3s-install.sh
|
||||||
environment: "{{ _install_envs }}"
|
environment: "{{ _install_envs }}"
|
||||||
vars:
|
vars:
|
||||||
_base_envs:
|
_base_envs:
|
||||||
|
INSTALL_K3S_SKIP_DOWNLOAD: "{{ skip_download | default('true') }}"
|
||||||
INSTALL_K3S_SKIP_START: "true"
|
INSTALL_K3S_SKIP_START: "true"
|
||||||
INSTALL_K3S_SYSTEMD_DIR: "{{ systemd_dir }}"
|
INSTALL_K3S_SYSTEMD_DIR: "{{ systemd_dir }}"
|
||||||
INSTALL_K3S_VERSION: "{{ k3s_version }}"
|
INSTALL_K3S_VERSION: "{{ k3s_version }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user