# Best way to publish a new module

**URL:** <https://forum.ansible.com/t/best-way-to-publish-a-new-module/1953>\
**Category:** Get Help\
**Tags:** module, galaxy-ng\
**Created:** [October 25, 2023, 1:59pm UTC](https://forum.ansible.com/t/best-way-to-publish-a-new-module/1953 "2023-10-25T13:59:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![melauer](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/melauer/32/1323_2.png) [@melauer](https://forum.ansible.com/u/melauer)\
**Post date:** [October 25, 2023, 1:59pm UTC](https://forum.ansible.com/t/best-way-to-publish-a-new-module/1953/1 "2023-10-25T13:59:52Z")

</div>

I recently put the code for an Ansible module which I developed on GitHub. It is called zypper\_lock and can be found at [GitHub - melauer/zypper\_lock: Ansible modules for managing zypper locklists](https://github.com/melauer/zypper_lock) . This module is based on dnf\_versionlock from community.general and has similar functionality but works with the “zypper” package manager which comes with SUSE Linux.

I was hoping to get some advice on how to publish this module. Looking at ansible-galaxy I see that it is possible to publish roles and collections and I see that collections can include modules. I guess my questions are:

1. Is it normal to publish a collection in ansible-galaxy for just a single module? Or is that bad form? Perhaps just making it available on GitHub is sufficient.

2. Related question: Given that ansible-galaxy recently changed and that some of the info I have found is now out of date, would it be a good idea to wait a bit for that whole situation to stabilize?

3. What sorts of things should I do to make this code more useful to people? I can search the web for guides for this sort of thing but if anyone can point me in the right direction, maybe to some sort of official guide, that would save me some time and I would really appreciate it.

---

<div class="post-metadata">

**Author:** ![pytoccaz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pytoccaz/32/1325_2.png) [@pytoccaz](https://forum.ansible.com/u/pytoccaz)\
**Post date:** [October 26, 2023, 3:19pm UTC](https://forum.ansible.com/t/best-way-to-publish-a-new-module/1953/2 "2023-10-26T15:19:52Z")

</div>

hello, if i am not wrong, since you can’t publish module but in a collection, don’t wait before publishing your own.  
For question 2, i can tell you i published my first module 3 days ago without any problem.  
For question 3, please have a look at this resource:

- [Journey of the development of Ansible Collection? (Part 4) | by Davinder Pal | Medium](https://116davinder.medium.com/journey-of-the-development-of-ansible-collection-part-4-f53ae1e773ec)
