Config Management Camp 2024 Ghent

Generating Ansible modules for REST APIs without AI
2024-02-06, 15:55–16:45, B.1.017

Writing Ansible modules is a tedious job.
Especially if all you do is to copy over the models from your app.
Especially if you want to have a module for each model, and you have hundreds of them.

Assuming the API has an API definition with OpenAPI/Swagger or Apipie, we can use the data provided by those tools to generate Ansible modules without much effort.

We'll be looking at tools like ansible.content_builder and apinsible for generating the modules, but also at general best practices how to organize a collection of modules to ensure new modules are easy to add and maintain.


Debian Developer, Red Hat Engineer, ♥ automation

This speaker also appears in:

Matthias Dellweg is working as a software engineer at RedHat. His day job involves all areas of the Pulp ecosystem.

This speaker also appears in: