I can't user defined variable in ansible role
for example vars/main.yaml
---
hub:
app_disk: sdb
size: 40
vg_name: vg1
And I've tried to refer to that variable in tasks as :
- name: debug variable
debug:
var: hub.size
or
var: hub['size']
var: "{{ hub.size }}"
var: "{{ hub['size'] }}"
But every time when I run playbook that include that role it returns that variable is not defined
For example, the below project
gives as expected