How to define variables in Ansible
In Ansible playbook, the variable should define in vars: section.
Sample variable definition playbook is given below.
vars:
- variable_name: variable_value
We can load this variable anywhere in the playbook after this.