Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 633 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 633 Bytes

Ansible collection code generator

We use this repository to generate the ansible modules.

Requirements

You need the following components on your system:

  • python 3.8.2
  • tox

Usage

To build the modules:

  1. add new swagger file at: src/swagger//
  2. generate modules
    tox -e refresh_modules
  3. 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.