playbook_kubectl/kubectl.yml

32 lines
781 B
YAML

---
###########################################################################
#
# This is the top level playbook for the 'kubectl' role.
#
# This role will install kubectl on the target host.
#
###########################################################################
#
# Requires that the variable "kubectl_ver" be set to the desired version
#
# This playbook can be run using the following command line;
#
# ansible-playbook -i <inventory file | IP,> -e "kubectl_ver=v1.29" kubectl.yml
#
# ie,
# ansible-playbook -i 192.168.0.101, -e "kubectl_ver=v1.29" kubectl.yml
#
###########################################################################
- hosts: all
gather_facts: true
remote_user: root
roles:
- role: kubectl
vars:
kubectl_ver: v1.29
# EOF