mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Adding TowerCLI receive module (#51023)
This commit is contained in:
committed by
John R Barker
parent
e1b7acde87
commit
0ce9593986
2
test/integration/targets/tower_receive/aliases
Normal file
2
test/integration/targets/tower_receive/aliases
Normal file
@@ -0,0 +1,2 @@
|
||||
cloud/tower
|
||||
shippable/tower/group1
|
||||
17
test/integration/targets/tower_receive/tasks/main.yml
Normal file
17
test/integration/targets/tower_receive/tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
- 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"
|
||||
Reference in New Issue
Block a user