Skip to main content

Auto-generate ansible role documentation

Project description

ansible-document

Automatically document ansible roles.

Concept

Generate documentation automatically by looking up a role's content.

Usage

$ ansible-mkdocs path/to/role
# ex:
$ ansible-mkdocs examples/install_gitlab
name | value | location
------|------|------
gitlab_package_script_url | https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | vars/main.yml
gitlab_interface | {{ ansible_default_ipv4['interface'] }} | defaults/main.yml
gitlab_addr | {{ hostvars[inventory_hostname]['ansible_' + gitlab_interface]['ipv4']['address']  }} | defaults/main.yml
gitlab_install | yes | defaults/main.yml

How does it work?

  • Generate a list with modules and their values
    • Example: copy will be used, register the mode, required, ...
  • Lookup every directory (files, tasks, vars, ...) and fetch information
    • For every directory, generate the associated template
  • Aggregate every generated templates
  • Add metadata
    • Has tests
    • Has molecule
    • Meta from meta/
  • Output markdown

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible_mkdocs-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

ansible_mkdocs-0.0.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file ansible_mkdocs-0.0.2.tar.gz.

File metadata

  • Download URL: ansible_mkdocs-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.10.7-3-MANJARO

File hashes

Hashes for ansible_mkdocs-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bcdf76879ee2ba32d8a2ca46847d945c8efa2d0d1ca1bb4e978bf7e30b5248c3
MD5 7ddecabc62c2af43df587e49a16a86d2
BLAKE2b-256 42ec506d462a6be7174004d2c86e815866dfc4851dc23e75908ec3787e4f5020

See more details on using hashes here.

File details

Details for the file ansible_mkdocs-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ansible_mkdocs-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.10.7-3-MANJARO

File hashes

Hashes for ansible_mkdocs-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37411016c69a03ed2ffead9403cc0f975d73b1c607044fc954c091e199c23b65
MD5 7da8a37bfc3e62a40addd0529a81fa7c
BLAKE2b-256 cd8ebff9c907ce057463f984e945ba0cb24daddd66783d311f5e1598032f3004

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page