DEV Community

Cover image for Parameterizing Ansible roles, Part II
XLAB Steampunk
XLAB Steampunk

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.

Top comments (0)