Description
ansible-doctor is a documentation generator for Ansible roles. You add annotations to a role, and ansible-doctor reads them and renders documentation from Jinja2 templates. It ships with a default readme template, and you can write custom templates to produce HTML, XML or other formats. It is designed to run inside a CI pipeline alongside your existing tests and deployment workflow. Releases are published as Python packages on GitHub and PyPI, and as a Docker image on Docker Hub, so you can install it with pip or Docker. The project builds on the idea of ansible-autodoc by Andres Bott and reuses some of its code, which the docs credit. The documentation covers setup, usage, configuration and release notes, and the source and a LICENSE file are on GitHub.…
Highlights
- Generates docs for Ansible roles from annotations
- Jinja2 templates for README, HTML or XML
- Runs in a CI pipeline
- Available on PyPI and as a Docker image
- Built on ideas from ansible-autodoc
Ratings & Reviews
No ratings yet
Be the first to rate ansible-doctor.
People also visit
ansible-doctor FAQ
What is ansible-doctor?
A documentation generator for Ansible roles. It turns annotations in the role into docs using Jinja2 templates.
How do I install it?
Install it with pip from PyPI, or run the Docker image from Docker Hub. The docs have a setup page for each.
Can I change the output format?
Yes. A default readme template is included, and you can write custom templates for HTML, XML or other formats.
Does it work in CI?
Yes. The project is designed to run inside a CI pipeline with your existing tests and deployment workflow.
Where is the source?
On GitHub, in the thegeeklab ansible-doctor repository.
What are the best ansible-doctor alternatives?
Popular alternatives to ansible-doctor include Ansible CLI, Ansibleforms and Pdoc. See all ansible-doctor alternatives














