Adding TowerCLI receive module (#51023)

This commit is contained in:
John Westcott IV
2019-01-18 06:11:17 -05:00
committed by John R Barker
parent e1b7acde87
commit 0ce9593986
3 changed files with 191 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
cloud/tower
shippable/tower/group1

View 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"