# Missing collection error

**URL:** <https://forum.ansible.com/t/missing-collection-error/34023>\
**Category:** Ansible Project\
**Created:** [October 13, 2020, 4:33pm UTC](https://forum.ansible.com/t/missing-collection-error/34023 "2020-10-13T16:33:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eoghan\_O\_Hara](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eoghan\_O\_Hara](https://forum.ansible.com/u/Eoghan_O_Hara)\
**Post date:** [October 13, 2020, 4:33pm UTC](https://forum.ansible.com/t/missing-collection-error/34023/1 "2020-10-13T16:33:56Z")

</div>

Hi all,

I wish to use the ansible.posix.mount module in my project, and have been attempting to include the installation of this collection in code. To do this I have a **requirements.yml** file:

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [October 13, 2020, 4:42pm UTC](https://forum.ansible.com/t/missing-collection-error/34023/2 "2020-10-13T16:42:21Z")

</div>

Items from `requirements.yml` are not auto installed during runtime, you would have to explicitly install them manually via the `ansible-galaxy` CLI tool, prior to running `ansible-playbook`

---

<div class="post-metadata">

**Author:** ![Eoghan\_O\_Hara](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eoghan\_O\_Hara](https://forum.ansible.com/u/Eoghan_O_Hara)\
**Post date:** [October 13, 2020, 4:48pm UTC](https://forum.ansible.com/t/missing-collection-error/34023/3 "2020-10-13T16:48:23Z")

</div>

Thank you for the response Matt. I’ll add a line in my pre-ansible shell script to install the collection

---

<div class="post-metadata">

**Author:** ![Eoghan\_O\_Hara](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eoghan\_O\_Hara](https://forum.ansible.com/u/Eoghan_O_Hara)\
**Post date:** [October 13, 2020, 5:05pm UTC](https://forum.ansible.com/t/missing-collection-error/34023/4 "2020-10-13T17:05:08Z")

</div>

I added a line in my pre-ansible script and it seems to have installed the collection:

virtualbox-iso: Installing ‘ansible.posix:1.1.1’ to ‘/root/.ansible/collections/ansible\_collections/ansible/posix’  
virtualbox-iso: |  
==\> virtualbox-iso: Provisioning with Ansible…

But I still get the same error later on. Is it possible that Ansible doesn’t know where to look for this collection in the playbook?

Or perhaps I do not need to call it ansible.posix.mount when using it, just mount?

Thanks,  
Eoghan
