# Cannot install collection through requirements.yml file

**URL:** <https://forum.ansible.com/t/cannot-install-collection-through-requirements-yml-file/36397>\
**Category:** AWX Project\
**Tags:** galaxy-ng\
**Created:** [March 3, 2022, 4:05pm UTC](https://forum.ansible.com/t/cannot-install-collection-through-requirements-yml-file/36397 "2022-03-03T16:05:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hieronymus](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hieronymus/32/1624_2.png) [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Post date:** [March 3, 2022, 4:05pm UTC](https://forum.ansible.com/t/cannot-install-collection-through-requirements-yml-file/36397/1 "2022-03-03T16:05:52Z")

</div>

Hi everyone,

I’m trying to enable an ansible collection through the requirements.yml without success…  
I need the following collections: [TheForeman.foreman](https://docs.ansible.com/ansible/latest/collections/theforeman/foreman/index.html) and according to the doc: [Install multiple collections with a requirements file](https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#id11). I’ve so configured my file:

**# cat requirements.yml**

---

<div class="post-metadata">

**Author:** ![Seth\_Foster](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Seth\_Foster](https://forum.ansible.com/u/Seth_Foster)\
**Post date:** [March 9, 2022, 9:03pm UTC](https://forum.ansible.com/t/cannot-install-collection-through-requirements-yml-file/36397/2 "2022-03-09T21:03:23Z")

</div>

Hi!

The ansible-galaxy collections requirements file needs to be at collections/requirements.yml relative to the project root directory.

Let me know if that helps,

Seth

---

<div class="post-metadata">

**Author:** ![Seth\_Foster](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Seth\_Foster](https://forum.ansible.com/u/Seth_Foster)\
**Post date:** [March 9, 2022, 9:41pm UTC](https://forum.ansible.com/t/cannot-install-collection-through-requirements-yml-file/36397/3 "2022-03-09T21:41:20Z")

</div>

and here is the link with that information [https://docs.ansible.com/automation-controller/latest/html/userguide/projects.html#collections-support](https://docs.ansible.com/automation-controller/latest/html/userguide/projects.html#collections-support)

---

<div class="post-metadata">

**Author:** ![hieronymus](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hieronymus/32/1624_2.png) [@hieronymus](https://forum.ansible.com/u/hieronymus)\
**Post date:** [March 10, 2022, 9:09am UTC](https://forum.ansible.com/t/cannot-install-collection-through-requirements-yml-file/36397/4 "2022-03-10T09:09:45Z")

</div>

Hi,  
The collections folder must be created. Now, it is running… Thank you  
First, I had put the file under roles but that was a bad idea. 😉

Best regards, H
