ee_utilities
ee_utilities copied to clipboard
Allow scraping the installed collections on Tower nodes
Currently the repo handles python modules, pip, etc. Would be great to have it also scrape existing installed Ansible Collections on the Tower nodes (collection name and version). This would be added to the final output of the playbook. For example, customer has collections installed in a custom path on the Tower nodes (/app/collections) which is set in the /etc/ansibe/ansible.cfg configuration file. Also note that, since Tower uses Ansible 2.9 the ansible-galaxy collection list
command is not available.
Would be nice to add this feature.
Quick and dirty way to do it with shell, for now:
for i in `find /app/collections/ -type d -name ansible_collections -exec find {} -name "MANIFEST.*" \;`; do
echo $i | sed 's/\/app\/collections\/ansible_collections/ /'; grep version $i;
done