Commit 6f44cf31 authored by Derek Nola's avatar Derek Nola
Browse files

Fix airgap agent install



Signed-off-by: default avatarDerek Nola <derek.nola@suse.com>
parent 1eca3a1a
Loading
Loading
Loading
Loading
+20 −13
Original line number Diff line number Diff line
@@ -26,13 +26,20 @@
        group: root
        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]
  ansible.builtin.command:
    cmd: /usr/local/bin/k3s-install.sh
  environment: "{{ _install_envs }}"
  vars:
    _base_envs:
      INSTALL_K3S_SKIP_DOWNLOAD: "{{ skip_download | default('true') }}"
      INSTALL_K3S_SKIP_START: "true"
      INSTALL_K3S_SYSTEMD_DIR: "{{ systemd_dir }}"
      INSTALL_K3S_VERSION: "{{ k3s_version }}"