over riding the var defined in include var file is making all other variables undefined

13 views
Skip to first unread message

Shashank Dutt Jha

unread,
Jul 11, 2019, 4:01:46 PM7/11/19
to Ansible Project
I have included var file using
var_files:
  - file

It has a variable city. state among others

Then I redefine the city variable in a json file and run the playbook --extra-vars "@a.json"

Now when I access any variable other then city it gives undefined var.


Shashank Dutt Jha

unread,
Jul 12, 2019, 12:08:40 PM7/12/19
to Ansible Project
Should I over-ride all variables? Looks like that.

Or can I selectively decide to over ride only few of them. This is what I want.
Reply all
Reply to author
Forward
0 new messages