# Can I override a collection's module using \`library\`?

**URL:** <https://forum.ansible.com/t/can-i-override-a-collections-module-using-library/32911>\
**Category:** Ansible Project\
**Created:** [May 12, 2020, 12:29pm UTC](https://forum.ansible.com/t/can-i-override-a-collections-module-using-library/32911 "2020-05-12T12:29:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Kakouros](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Post date:** [May 12, 2020, 12:29pm UTC](https://forum.ansible.com/t/can-i-override-a-collections-module-using-library/32911/1 "2020-05-12T12:29:51Z")

</div>

Many modules in the google.cloud collection are in a sorry state. I would like to override some of them with local fixes. Before collections, I could specify `library` in my ansible.cfg and place a copy of the module in that library folder and ansible would use my fixed version of the module.

I tried renaming the module to add a `google.cloud` prefix. I also tried to place it in a `google/cloud` folder. But nothing seemed to work.

Is there a way to achieve the above? Should I open a feature request if it is not supported?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [May 14, 2020, 8:20pm UTC](https://forum.ansible.com/t/can-i-override-a-collections-module-using-library/32911/2 "2020-05-14T20:20:12Z")

</div>

Sorry, no

collections are not designed to allow overrides, you would have to use ‘short names’ and insert your collection above it in priority:

collections:

- google.fixed
- google.cloud

But that also means you could have to change more code (mostly imports, depending on how they are written).

Something simlar can be done with library/shortname by using `ansible.legacy` collection.
