Home

Awesome

Ansible Role: k3sup

Ansible role for installing k3sup a light-weight utility to get from zero to KUBECONFIG with k3s on any local or remote VM.

Requirements

No special requirements.

Role Variables

VariableDescriptionDefault Value
k3sup_statek3sup state, options: installed, uninstalledinstalled
k3sup_release_versionUse a specific version of k3sup, eg. 0.7.0. Specify false for latestfalse
k3sup_github_urlSet the GitHub URL to install k3sup fromhttps://github.com/alexellis/k3sup
k3sup_install_dirInstallation directory for k3sup/usr/local/bin
k3sup_non_rootInstall k3sup as non-root user. See notes belowfalse

Important note about k3sup_release_version

If you do not set a k3sup_release_version the latest version of k3sup will be installed. If you need a specific version of k3sup you must ensure this is set in your Ansible configuration, eg:

k3sup_release_version: 0.7.0

Important note about k3sup_non_root

To install k3sup as non root you must not use become: true.

k3sup_install_dir must be writable by your user.

Dependencies

No dependencies on other roles.

Example Playbook

Example playbook:

- hosts: servers
  roles:
   - { role: vandot.k3sup, k3sup_release_version: 0.7.0 }

License

BSD-3-Clause

Author Information

Ivan Vandot