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 specific…


This content originally appeared on DEV Community and was authored by XLAB

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.


This content originally appeared on DEV Community and was authored by XLAB


Print Share Comment Cite Upload Translate Updates
APA

XLAB | Sciencx (2021-12-10T13:01:17+00:00) Parameterizing Ansible roles, Part II. Retrieved from https://www.scien.cx/2021/12/10/parameterizing-ansible-roles-part-ii/

MLA
" » Parameterizing Ansible roles, Part II." XLAB | Sciencx - Friday December 10, 2021, https://www.scien.cx/2021/12/10/parameterizing-ansible-roles-part-ii/
HARVARD
XLAB | Sciencx Friday December 10, 2021 » Parameterizing Ansible roles, Part II., viewed ,<https://www.scien.cx/2021/12/10/parameterizing-ansible-roles-part-ii/>
VANCOUVER
XLAB | Sciencx - » Parameterizing Ansible roles, Part II. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/10/parameterizing-ansible-roles-part-ii/
CHICAGO
" » Parameterizing Ansible roles, Part II." XLAB | Sciencx - Accessed . https://www.scien.cx/2021/12/10/parameterizing-ansible-roles-part-ii/
IEEE
" » Parameterizing Ansible roles, Part II." XLAB | Sciencx [Online]. Available: https://www.scien.cx/2021/12/10/parameterizing-ansible-roles-part-ii/. [Accessed: ]
rf:citation
» Parameterizing Ansible roles, Part II | XLAB | Sciencx | https://www.scien.cx/2021/12/10/parameterizing-ansible-roles-part-ii/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.