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:
- Developers gained a structured way of documenting Ansible role variables/parameters.
- End-users are able to use
ansible-doc
to display the role documentation. - Ansible also validates the variable values before including the role.
This content originally appeared on DEV Community and was authored by XLAB
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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.