mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
340 B
YAML
18 lines
340 B
YAML
5 years ago
|
- 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"
|