Generate documentation and continuous integration files for an Ansible Role.
Go to file
Robert de Bock 32b5283148 Disable AppArmor for MySQL. 2020-01-07 07:50:07 +01:00
files Also manage .gitignore 2019-12-12 21:38:18 +01:00
templates Disable AppArmor for MySQL. 2020-01-07 07:50:07 +01:00
vars Initial commit 2019-12-04 07:14:52 +01:00
README.md Move compatibility to a much simpler form. 2019-12-08 19:47:40 +01:00
generate.yml Split test and release into 2 parts. 2019-12-30 19:46:03 +01:00

README.md

ansible-generator

Generate documentation and continuous integration files for an Ansible Role.

Input

This script loads input from:

  • meta/main.yml*
  • meta/version.yml
  • meta/exception.yml
  • meta/preferences.yml
  • defaults/main.yml
  • requirements.yml
  • molecule/default/prepare.yml
  • molecule/default/playbook.yml*
  • molecule/default/verify.yml
  • meta/logo.png
  • generate_modules.sh
  • Ansible Galaxy

(Items with a star are mandatory)

Output

This script writes output to:

  • README.md
  • molecule/default/molecule.yml
  • CONTRIBUTING.md
  • SECURITY.md
  • LICENSE
  • .travis.yml
  • tox.ini
  • .ansible-lint*

Usage

cd ansible-role-my_role
../path/to/generate.yml

meta/version.yml

This optional file can be placed when a role contains a version.

---
project_name: Ansible
reference: "defaults/main.yml"
versions:
  - name: ansible
    url: "https://github.com/ansible/ansible/releases"

meta/exception.yml

This optional file describes why some build are excepted.

---
exceptions:
  - variation: alpine
    reason: "Not idempotent"

meta/preferences.yml

This optional file describes how Travis, Tox and Molecule should behave.

---
travis_parallel: no
tox_versions:
  - current