Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow scraping the installed collections on Tower nodes #106

Open
ansiblejunky opened this issue May 8, 2023 · 1 comment
Open

Allow scraping the installed collections on Tower nodes #106

ansiblejunky opened this issue May 8, 2023 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@ansiblejunky
Copy link

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.

@ansiblejunky ansiblejunky added bug Something isn't working new labels May 8, 2023
@ansiblejunky
Copy link
Author

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

@djdanielsson djdanielsson added enhancement New feature or request and removed new labels Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants