We use this repository to generate the ansible modules.
You need the following components on your system:
- python 3.8.2
- tox
To build the modules:
- add new swagger file at: src/swagger//
- generate modules
tox -e refresh_modules
- Docs generation
# Generate docs for each module find ./plugins/modules/*.py | sed 's/.py//' | sed 's/\.\/plugins\/modules\///' | xargs -I@ bash -c "ansible-doc -t module -M ./plugins/modules @ > docs/@.txt"
The modules will be generated in build
subdirectory.