Ansible get value from dict. In vars/main. extract. yml, I defined vars as below: --- location: ...