What are Ansible variables

Variables are dynamic values that can be overridden to control Ansible tasks or populate templates, they help us to create reusable and generic roles
Example of {{ path }} variable definition (file roles/debug/defaults/main.yml):

---
path: 'roles/debug/defaults/main.yml'
Usage (file roles/debug/tasks/main.yml):
...
- debug
    msg: "The path is {{ path|default('not defined') }}"
,..