kubectl
Ansible Role: kubectl
An Ansible Role that installs kubectl on Linux.
Requirements
None.
Role Variables
Available variables are listed below, along with default values (see defaults/main.yml
):
kubectl_version: "1.27.7"
kubectl_bin_path: "/usr/bin"
kubectl_tmp_directory: "{{ lookup('env', 'TMPDIR') | default('/tmp', true) }}"
kubectl_os: "linux"
kubectl_arch: "amd64"
Dependencies
None.
Example Playbook
- hosts: all
roles:
- sgaunet.kubectl
License
MIT