there a several ways to define variables for playbooks or roles So it would be possible that conflicting variable values are defined in different locations.
I am wondering how the hierarchy looks like here?
thks. Is there any way to display the effective value of a given variable in a particiular context?
some like ansible-check-var [variable] or so?
Not that I know.
I usually add this somewhere early:
- debug: var=myvar
- meta: end_play
ok thanks. I'll look into this as an option