I have defined a role dcn-rq2 and it has some variables defined in ~/dcn-rq2/defaults/main.yml file and i have written a playbook which includes this role at the top as shown below. my understanding is that all the vraiables defined in the role should automatically available to the playbook but it errors out.
//My top level YAML file for the playbook
- hosts: DCN-VSD
roles:
- dcn-rq2
tasks:
- debug: msg="{{test_var}}"
my dcn-rq2/defaults/main.yml
---
test_var: '12'