Files
awx/awx_collection/tests/integration/targets/tower_receive/tasks/main.yml
2020-03-03 10:44:48 -08:00

19 lines
344 B
YAML

---
- name: Export all Tower assets
tower_receive:
all: true
register: result
- assert:
that:
- "result is successful"
- name: Extract names from output
set_fact:
object_names: "{{ result.assets | map(attribute='name') | list }}"
- assert:
that:
- "result is successful"
- "'Default' in object_names"