- name: Install apt key become: yes apt_key: url: "https://packages.cloud.google.com/apt/doc/apt-key.gpg" state: present - name: Add kubernetes repo become: yes apt_repository: repo: deb http://apt.kubernetes.io/ kubernetes-xenial main state: present - name: Install kubernetes packages and dependencies become: yes apt: name: - kubectl - liblz4-tool update_cache: yes - name: Run cluster tasks include_tasks: minikube.yaml when: install_kubernetes_with_cluster