ansible-role-kubectl
Ansible role for installing kubectl.
Requirements
Poetry. Install it from https://python-poetry.org/docs/
Role Variables
kubectl_version: latest # It can also be a specifik version like v1.21.4
kubectl_for_all_users: true # If false it will install in in the users ~/bin directory
command_shell: bash # Must be bash or zsh
Dependencies
None
Example Playbook
- hosts: all
roles:
- { role: avnes.kubectl }
For pip compability
poetry export --dev --output requirements.txt
Test
poetry install
poetry shell
molecule test
License
MIT