mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
28 lines
522 B
YAML
28 lines
522 B
YAML
---
|
|
- 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 is one tower pod
|
|
assert:
|
|
that: '{{ (tower_pods.resources | length) == 1 }}'
|
|
|
|
- name: Verify tower functionality
|
|
hosts: k8s
|
|
|
|
vars: []
|
|
|
|
tasks: []
|