# A way to determine which ansible collections are used in many playbooks as opposed to listing the installed collections on a controller?

**URL:** <https://forum.ansible.com/t/a-way-to-determine-which-ansible-collections-are-used-in-many-playbooks-as-opposed-to-listing-the-installed-collections-on-a-controller/5820>\
**Category:** Get Help\
**Tags:** playbook, collections, galaxy-ng\
**Created:** [May 15, 2024, 7:15am UTC](https://forum.ansible.com/t/a-way-to-determine-which-ansible-collections-are-used-in-many-playbooks-as-opposed-to-listing-the-installed-collections-on-a-controller/5820 "2024-05-15T07:15:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShanDesai](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@ShanDesai](https://forum.ansible.com/u/ShanDesai)\
**Post date:** [May 15, 2024, 7:15am UTC](https://forum.ansible.com/t/a-way-to-determine-which-ansible-collections-are-used-in-many-playbooks-as-opposed-to-listing-the-installed-collections-on-a-controller/5820/1 "2024-05-15T07:15:56Z")

</div>

I have a decent amount of playbooks in an Ansible Runner Project and many tend to use some standard collections available from ansible-galaxy.

I wish to setup a `requirements.txt` file so that any python package that is a dependency for collections can be created in order to create VMs for my controller.

E.g. `community.docker` depends on `docker` python package, I tend to use blowfish cryptographic algorithm hence I need to install `passlib` etc.

I was wondering if there is some way to determine which collections are used in these sets of playbooks?

---

<div class="post-metadata">

**Author:** ![iyami5](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/iyami5/32/3449_2.png) [@iyami5](https://forum.ansible.com/u/iyami5)\
**Post date:** [May 15, 2024, 10:14pm UTC](https://forum.ansible.com/t/a-way-to-determine-which-ansible-collections-are-used-in-many-playbooks-as-opposed-to-listing-the-installed-collections-on-a-controller/5820/2 "2024-05-15T22:14:10Z")

</div>

Its hard to tell by just looking at the playbook. You should look in the git repository and look at the collections directory. If using custom made images for EE then you can see with ansible-navigator.
