Skip to content

Commit 1670289

Browse files
committed
list collections before running jinja'd template
this helps us understand failures if we have a mismatch of what collection is installed vs. what is templated
1 parent 48d7473 commit 1670289

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tower_collection_smoke.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
vars:
55
collection_id: awx.awx
66
tasks:
7+
- name: "List what collections are installed (only available with ansible 2.10+)"
8+
shell: "ansible-galaxy collection list"
9+
register: ansible_collections_list
10+
when: ansible_version.full is version('2.10.0', '>=')
11+
12+
- name: "Echo what collections are installed (only available with ansible 2.10+)"
13+
debug:
14+
msg: "{{ ansible_collections_list.stdout_lines }}"
15+
when: ansible_version.full is version('2.10.0', '>=')
16+
717
- name: "Create playbook to call with collection FQCN"
818
template:
919
src: tower_collection_smoke.j2

0 commit comments

Comments
 (0)