Skip to Content
Security Automation with Ansible 2
book

Security Automation with Ansible 2

by Akash Mahajan, MADHU AKULA
December 2017
Intermediate to advanced
364 pages
7h 30m
English
Packt Publishing
Content preview from Security Automation with Ansible 2

Documenting the module

The module documentation is generated from the module code itself. The DOCUMENTATION docstring is compulsory for the modules to be created now. 

The easiest way to get started is to look at this example: https://github.com/ansible/ansible/blob/devel/examples/DOCUMENTATION.yml.

The list of fields required here are:

  • module: Module name
  • short_description: Short description
  • description: Description
  • version_added: Indicated by X.Y
  • author: Your name and twitter/GitHub username
  • options: Each of the options supported by the module
  • notes: Anything else that a module user should be aware of
  • requirements: We list additional package requirements
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing DevOps with Ansible 2

Implementing DevOps with Ansible 2

Jonathan McAllister
Practical Ansible 2

Practical Ansible 2

Daniel Oh, James Freeman, Fabio Alessandro Locati

Publisher Resources

ISBN: 9781788394512Supplemental Content