# ansible-galaxy vs. ansible-galaxy collections

**URL:** <https://forum.ansible.com/t/ansible-galaxy-vs-ansible-galaxy-collections/36399>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [March 4, 2022, 3:36pm UTC](https://forum.ansible.com/t/ansible-galaxy-vs-ansible-galaxy-collections/36399 "2022-03-04T15:36:13Z")\
**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 4, 2022, 3:36pm UTC](https://forum.ansible.com/t/ansible-galaxy-vs-ansible-galaxy-collections/36399/1 "2022-03-04T15:36:13Z")

</div>

Hi everyone,

On the ansible documentation, I found the collection “the foreman.foreman” here’s the link: [theforeman.foreman](https://docs.ansible.com/ansible/latest/collections/theforeman/foreman/index.html)

This collection can manually be installed like:  
ansible-galaxy collection install the foreman.foreman and all seems ok.

So, now I need to do the same things but automatically through the requirements.yml file, like this:

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [March 4, 2022, 3:55pm UTC](https://forum.ansible.com/t/ansible-galaxy-vs-ansible-galaxy-collections/36399/2 "2022-03-04T15:55:13Z")

</div>

"works for me"

$ cat r.yml

---

<div class="post-metadata">

**Author:** ![jcpetro](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jcpetro](https://forum.ansible.com/u/jcpetro)\
**Post date:** [March 4, 2022, 4:29pm UTC](https://forum.ansible.com/t/ansible-galaxy-vs-ansible-galaxy-collections/36399/3 "2022-03-04T16:29:59Z")

</div>

Maybe you have a formatting issue with your requirements.yml. Mine looks like this, and it worked no problem.

collections:

- name: theforeman.foreman

---

<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 7, 2022, 11:59am UTC](https://forum.ansible.com/t/ansible-galaxy-vs-ansible-galaxy-collections/36399/4 "2022-03-07T11:59:51Z")

</div>

Thank you for your help.  
I have configured it as you told me and it works well…

Best regards
