DEV Community

Cover image for Parameterizing Ansible roles, Part II

Posted on


Parameterizing Ansible roles, Part II

In the previous Tips&Tricks we explained how to parametrize Ansible roles. For all of you who thought "well, documenting variables sucks compared to documenting module parameters", we have some exciting news! Ansible Core features argument specification support for Ansible roles. In practical terms, this means that:

  1. Developers gained a structured way of documenting Ansible role variables/parameters.
  2. End-users are able to use ansible-doc to display the role documentation.
  3. Ansible also validates the variable values before including the role.

Oldest comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.