Generate documentation from annotated Ansible roles using templates.

ansible, role, documentation, python, automation
pip install ansible-doctor==0.2.3



Annotation based documentation for your Ansible roles

Build Status Docker Hub Python Version PyPI Status PyPI Release GitHub contributors Source: GitHub License: GPL-3.0

This project is based on the idea (and at some parts on the code) of ansible-autodoc by Andres Bott so credits goes to him for his work.

ansible-doctor is a simple annotation like documentation generator based on Jinja2 templates. While ansible-doctor comes with a default template called readme, it is also possible to write your own templates. This gives you the ability to customize the output and render the data to every format you like (e.g. HTML or XML).

ansible-doctor is designed to work within your CI pipeline to complete your testing and deployment workflow. Releases are available as Python Packages on GitHub or PyPI and as Docker Image on Docker Hub.

You can find the full documentation at


Special thanks goes to all contributors. If you would like to contribute, please see the instructions.


This project is licensed under the GPL-3.0 License - see the LICENSE file for details.