# Which tool to use for auto-generating Ansible modules from OpenAPI definitions?

**URL:** <https://forum.ansible.com/t/which-tool-to-use-for-auto-generating-ansible-modules-from-openapi-definitions/45091>\
**Category:** Get Help\
**Tags:** api, devtools, netscaler, dev, ansible-devel\
**Created:** [January 13, 2026, 1:21pm UTC](https://forum.ansible.com/t/which-tool-to-use-for-auto-generating-ansible-modules-from-openapi-definitions/45091 "2026-01-13T13:21:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stdevel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/stdevel/32/279_2.png) [@stdevel](https://forum.ansible.com/u/stdevel)\
**Post date:** [January 13, 2026, 1:21pm UTC](https://forum.ansible.com/t/which-tool-to-use-for-auto-generating-ansible-modules-from-openapi-definitions/45091/1 "2026-01-13T13:21:06Z")

</div>

Hello everybody,

I’m currently trying to auto-generate Ansible modules from OpenAPI (Swagger) definitions. During research I stumbled upon the [`ansible.content_builder` collection](https://github.com/ansible-community/ansible.content_builder). This collection is suspect to be replaced with the [`ansible-creator` utility](https://github.com/ansible-community/ansible.content_builder/issues/84) - anyhow, this tool still [lacks OpenAPI support](https://github.com/ansible/ansible-creator/issues/106).

I tried to get `ansible.content_builder` running, but [stumbled upon various issues](https://github.com/ansible-community/ansible.content_builder/issues/71).

Next, I discovered [`ansible-waldur-generator`](https://github.com/waldur/ansible-waldur-generator) that generates code, but isn’t working for me - the documentation is very hard to get into.

**My question** : Are these the only two utilities to auto-generate Ansible modules from OpenAPI definitions these days? Am I missing something?

Thanks a lot in advance!

---

<div class="post-metadata">

**Author:** ![bvitnik](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bvitnik/32/4132_2.png) [@bvitnik](https://forum.ansible.com/u/bvitnik)\
**Post date:** [January 13, 2026, 3:10pm UTC](https://forum.ansible.com/t/which-tool-to-use-for-auto-generating-ansible-modules-from-openapi-definitions/45091/2 "2026-01-13T15:10:27Z")

</div>

Hi. While I may have no real answer, the thing you are doing reminded me of what Citrix did for their NetScaler product line.

> **[GitHub - netscaler/ansible-collection-netscaleradc: Custom Ansible modules for NetScaler ADC and...](https://github.com/netscaler/ansible-collection-netscaleradc)**
>
> Custom Ansible modules for NetScaler ADC and NetScaler ADM. Part of NetScaler Automation Toolkit | https://github.com/netscaler/automation-toolkit

Take a look at:

> <https://github.com/netscaler/ansible-collection-netscaleradc/blob/main/plugins/module_utils/nitro_resource_map.py>

and

> <https://github.com/netscaler/ansible-collection-netscaleradc/blob/main/plugins/module_utils/module_executor.py>

This is not OpenAPI per se but the idea is the same. They have a huge strict API specification in form of a Python dict (almost JSON) and a “module executor” that can generate modules on the fly using the specification. The modules are then trivial. They just call the module executor.

---

<div class="post-metadata">

**Author:** ![stdevel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/stdevel/32/279_2.png) [@stdevel](https://forum.ansible.com/u/stdevel)\
**Post date:** [January 13, 2026, 4:05pm UTC](https://forum.ansible.com/t/which-tool-to-use-for-auto-generating-ansible-modules-from-openapi-definitions/45091/3 "2026-01-13T16:05:40Z")

</div>

That’s a good catch, thanks for sharing!
