Home:ALL Converter>Specifying variables in master Ansible playbook

Specifying variables in master Ansible playbook

Ask Time:2016-05-04T15:56:26         Author:Divya Mangotra

Json Formatter

I am writing a master Ansible playbook which is including playbooks. Now, I want to set variables that all the playbooks specified within it use. How do I specify variables in this playbook? I know that one of the options is to include vars_files and use it with each of the playbook. Example: - include: abc.yml vars_files: vars.yml

I am using Ansible 1.9.3.

Author:Divya Mangotra,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37021731/specifying-variables-in-master-ansible-playbook
yy