mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-27 05:43:11 +00:00
21 lines
439 B
YAML
21 lines
439 B
YAML
---
|
|
- name: Verify cluster resources
|
|
hosts: localhost
|
|
connection: local
|
|
|
|
vars:
|
|
ansible_python_interpreter: '{{ ansible_playbook_python }}'
|
|
|
|
tasks:
|
|
- name: Get AWX Pod data
|
|
k8s_info:
|
|
kind: Pod
|
|
namespace: example-awx
|
|
label_selectors:
|
|
- app=awx
|
|
register: tower_pods
|
|
|
|
- name: Verify there is one AWX pod
|
|
assert:
|
|
that: '{{ (tower_pods.resources | length) == 1 }}'
|