# Place for common (shared) code for collections

**URL:** <https://forum.ansible.com/t/place-for-common-shared-code-for-collections/1721>\
**Category:** Project Discussions\
**Tags:** dev, collections, community-wg\
**Created:** [October 15, 2023, 2:32pm UTC](https://forum.ansible.com/t/place-for-common-shared-code-for-collections/1721 "2023-10-15T14:32:28Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [December 7, 2023, 9:58pm UTC](https://forum.ansible.com/t/place-for-common-shared-code-for-collections/1721/21 "2023-12-07T21:58:55Z")

</div>

Publishing that collection to Galaxy with Zuul also worked: [Ansible Galaxy](https://galaxy.ansible.com/ui/repo/published/community/library_inventory_filtering_v1/)

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [December 28, 2023, 9:36pm UTC](https://forum.ansible.com/t/place-for-common-shared-code-for-collections/1721/22 "2023-12-28T21:36:19Z")

</div>

I released 1.0.0 of community.library\_inventory\_filtering\_v1, and applied inclusion into Ansible for the collection ([community.library\_inventory\_filtering\_v1 · ansible-collections/ansible-inclusion · Discussion #68 · GitHub](https://github.com/ansible-collections/ansible-inclusion/discussions/68)).

---

<div class="post-metadata">

**Author:** ![mariolenz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mariolenz/32/108_2.png) [@mariolenz](https://forum.ansible.com/u/mariolenz)\
**Post date:** [December 29, 2023, 5:40pm UTC](https://forum.ansible.com/t/place-for-common-shared-code-for-collections/1721/23 "2023-12-29T17:40:22Z")

</div>

@felixfontein I wanted to have a look at the inclusion request, but stumbled on the [Python requirements for collections](https://github.com/ansible-collections/overview/issues/230) 😕

I think this is something we should discuss sooner or later.

_edit:_ BTW since this is a new collection, do you really want to still support 2.9 and other EOL versions? Personally, I’d support the latest version (2.16+) or maybe all versions which aren’t EOL yet (2.14+).

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [December 29, 2023, 7:29pm UTC](https://forum.ansible.com/t/place-for-common-shared-code-for-collections/1721/24 "2023-12-29T19:29:53Z")

</div>

> [@mariolenz](#):
>
> I think this is something we should discuss sooner or later.

We already discussed it this fall, and updated the requirements ([[Associated vote ended on 2023-08-30] Update Python requirements for collections included in Ansible · Issue #251 · ansible-community/community-topics · GitHub](https://github.com/ansible-community/community-topics/issues/251)). We didn’t update the checklist, though… [Adjust Python requirements to collection inclusion requirements by felixfontein · Pull Request #231 · ansible-collections/overview · GitHub](https://github.com/ansible-collections/overview/pull/231) should fix that.

> [@mariolenz](#):
>
> _edit:_ BTW since this is a new collection, do you really want to still support 2.9 and other EOL versions? Personally, I’d support the latest version (2.16+) or maybe all versions which aren’t EOL yet (2.14+).

In that case the collection would be pretty much worthless since most collections included in Ansible cannot use it, since they support ansible-core (or even ansible-base or Ansible 2.9) versions that are already EOL.

From the ones I maintain, there’s community.dns (two inventory plugins, supports Ansible 2.9+), community.hrobot (one inventory plugin, supports Ansible 2.9+), community.docker (three inventory plugins, supports ansible-core 2.11+). Even community.general (several inventory plugins) supports EOL ansible-core versions (2.13+).

---

<div class="post-metadata">

**Author:** ![mariolenz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mariolenz/32/108_2.png) [@mariolenz](https://forum.ansible.com/u/mariolenz)\
**Post date:** [December 29, 2023, 7:36pm UTC](https://forum.ansible.com/t/place-for-common-shared-code-for-collections/1721/25 "2023-12-29T19:36:59Z")

</div>

> [@felixfontein](#):
>
> > [@mariolenz](#):
> >
> > _edit:_ BTW since this is a new collection, do you really want to still support 2.9 and other EOL versions? Personally, I’d support the latest version (2.16+) or maybe all versions which aren’t EOL yet (2.14+).
> 
> In that case the collection would be pretty much worthless since most collections included in Ansible cannot use it, since they support ansible-core (or even ansible-base or Ansible 2.9) versions that are already EOL.

Just wanted to mention if. If you have good reasons to still support 2.9, that’s OK.

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [January 13, 2024, 11:48am UTC](https://forum.ansible.com/t/place-for-common-shared-code-for-collections/1721/26 "2024-01-13T11:48:39Z")

</div>

community.library\_inventory\_filtering\_v1 is now part of Ansible (more precisely: from the next release on - [Add community.library\_inventory\_filtering\_v1 collection by mariolenz · Pull Request #352 · ansible-community/ansible-build-data · GitHub](https://github.com/ansible-community/ansible-build-data/pull/352) has been merged yesterday), and community.docker will start depending on it very soon (via [Add inventory filter capability by felixfontein · Pull Request #698 · ansible-collections/community.docker · GitHub](https://github.com/ansible-collections/community.docker/pull/698)).

[Previous page](https://forum.ansible.com/t/place-for-common-shared-code-for-collections/1721.md?page=1)
