Ansible role for installing k3sup a light-weight utility to get from zero to KUBECONFIG with k3s on any local or remote VM.
No special requirements.
Variable | Description | Default Value |
---|---|---|
k3sup_state |
k3sup state, options: installed, uninstalled | installed |
k3sup_release_version |
Use a specific version of k3sup, eg. 0.7.0 . Specify false for latest |
false |
k3sup_github_url |
Set the GitHub URL to install k3sup from | https://github.com/alexellis/k3sup |
k3sup_install_dir |
Installation directory for k3sup | /usr/local/bin |
k3sup_non_root |
Install k3sup as non-root user. See notes below | false |
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
To install k3sup as non root you must not use become: true
.
k3sup_install_dir
must be writable by your user.
No dependencies on other roles.
Example playbook:
- hosts: servers
roles:
- { role: vandot.k3sup, k3sup_release_version: 0.7.0 }
BSD-3-Clause