Ansible Playbook Variables¶
These are the variables that we are creating. There are two (not really) ways to keep the vars.
- Keep the vars in
vars/main.ymlwithin a role. - Keep the vars in a single
vars.ymlfile in the root of the project.-
In
playbook.ymladd the following- name: Ansible playbook vars_files: - vars.yml
-