diff --git a/molecule/default/playbook.yml b/molecule/default/playbook.yml index c21702e..cc3bf1c 100644 --- a/molecule/default/playbook.yml +++ b/molecule/default/playbook.yml @@ -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 diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 1aa5c20..2d07fa5 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -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: