We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5045e84 commit 8502a94Copy full SHA for 8502a94
1 file changed
.tasks/ansible.yml
@@ -13,6 +13,16 @@ tasks:
13
- :ensure-collections-dir
14
cmds:
15
- ansible-galaxy collection install -r {{.USER_WORKING_DIR}}/requirements.yml --force -p {{.ANSIBLE_COLLECTIONS_PATH}}
16
+ - |
17
+ # Log git-based collection commit SHAs for debugging
18
+ for collection_dir in {{.ANSIBLE_COLLECTIONS_PATH}}/ansible_collections/*/*; do
19
+ if [ -d "$collection_dir/.git" ]; then
20
+ collection_name=$(basename $(dirname $collection_dir))/$(basename $collection_dir)
21
+ commit_sha=$(git -C "$collection_dir" rev-parse HEAD 2>/dev/null)
22
+ commit_msg=$(git -C "$collection_dir" log -1 --format="%s" 2>/dev/null)
23
+ echo "Collection $collection_name at commit: $commit_sha ($commit_msg)"
24
+ fi
25
+ done
26
27
role:
28
desc: Install Ansible roles
0 commit comments