Initial commit.

This commit is contained in:
Jeff Geerling
2019-10-30 12:00:17 -05:00
commit 80895d628a
29 changed files with 738 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
---
- name: Verify cluster resources
hosts: localhost
connection: local
vars:
ansible_python_interpreter: '{{ ansible_playbook_python }}'
tasks:
- name: Get tower Pod data
k8s_facts:
kind: Pod
namespace: example-tower
label_selectors:
- app=tower
register: tower_pods
- name: Verify there are two tower pods
assert:
that: '{{ (tower_pods.resources | length) == 2 }}'
- name: Verify tower functionality
hosts: k8s
vars: []
tasks: []