Skip to main content

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

Metadata

Release files for ansible-mkdocs 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ansible-mkdocs 0.0.2
File Size Uploaded
ansible_mkdocs-0.0.2.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ansible-mkdocs 0.0.2
File Interpreter ABI Platform
ansible_mkdocs-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / ansible_mkdocs-0.0.2.tar.gz

Download URL ansible_mkdocs-0.0.2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bcdf76879ee2ba32d8a2ca46847d945c8efa2d0d1ca1bb4e978bf7e30b5248c3
BLAKE2b-256 checksum
How to use checksums
42ec506d462a6be7174004d2c86e815866dfc4851dc23e75908ec3787e4f5020
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.10.7-3-MANJARO

Release files / ansible_mkdocs-0.0.2-py3-none-any.whl

Download URL ansible_mkdocs-0.0.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37411016c69a03ed2ffead9403cc0f975d73b1c607044fc954c091e199c23b65
BLAKE2b-256 checksum
How to use checksums
cd8ebff9c907ce057463f984e945ba0cb24daddd66783d311f5e1598032f3004
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.10.7-3-MANJARO

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page