DEV Community

Cover image for Parameterizing Ansible roles, Part II
XLAB
XLAB

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.

Latest comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git