sgaunet.kubectl
Ansible Role: kubectl
This is an Ansible Role that helps you install kubectl on Linux.
Requirements
No special requirements.
Role Variables
Here are the variables you can use, along with their default values (check defaults/main.yml
for more details):
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
No dependencies needed.
Example Playbook
Here's an example of how to use this Ansible role in a playbook:
- hosts: all
roles:
- sgaunet.kubectl
License
This role is licensed under the MIT License.