Skip to content

richardhofman/sphinxcontrib-ansibleautodoc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sphinxcontrib-ansibleautodoc

sphinxcontrib-ansibleautodoc is an sphinx extension which can search task in ansible playbook and generate document.

install

pip install sphinxcontrib-ansibleautodoc

and add 'sphinxcontrib.ansibleautodoc' in extensions in your conf.py.

extensions = [
    'sphinxcontrib.ansibleautodoc',
]

How to use

Currently there is one directive called ansibleautotask.

ansibleautotask

.. ansibleautotask:: second task
   :playbook: ../ansible/web.yml

The contents of this directive is an ansible task name. If task does not have a name, directive can not find.

playbook option is for specify initial ansible playbook. ansibleautodoc scan the playbook and read include and roles as followes. So you need only one playbook file.

Output Example

image

Ansible

https://ansible.com

License

2-clause BSD License

About

autodoc for ansible playbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 73.3%
  • Makefile 26.7%