mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2025-01-22 00:12:09 +01:00
Fix boolean on Debian setup, add more tests.
This commit is contained in:
parent
fad8281b98
commit
0379cc47db
@ -27,3 +27,20 @@
|
||||
roles:
|
||||
- role: geerlingguy.docker
|
||||
- role: geerlingguy.kubernetes
|
||||
|
||||
post_tasks:
|
||||
- name: Get cluster info.
|
||||
command: kubectl cluster-info
|
||||
changed_when: false
|
||||
register: kubernetes_info
|
||||
|
||||
- name: Print cluster info.
|
||||
debug: var=kubernetes_info.stdout
|
||||
|
||||
- name: Get all running pods.
|
||||
command: kubectl get pods --all-namespaces
|
||||
changed_when: false
|
||||
register: kubernetes_pods
|
||||
|
||||
- name: Print list of running pods.
|
||||
debug: var=kubernetes_pods.stdout
|
||||
|
@ -17,7 +17,7 @@
|
||||
apt_repository:
|
||||
repo: "{{ kubernetes_apt_repository }}"
|
||||
state: present
|
||||
update_cache: false
|
||||
update_cache: true
|
||||
|
||||
- name: Add Kubernetes apt preferences file to pin a version.
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user