Hi,
recently I added this ticket to V2: https://github.com/ansible/ansible/issues/11807
It was closed with explanation that this is expected behaviour. I will have to argue on this one.
Lets say that roleA installs i don’t know Apache Maven or what ever and MY_VARIABLE would be version that should be installed. For some reason it uses include_vars for including MY_VARIABLE.
Now lets say roleB is generic role, that will install all my different web apps, all I have to do is to provide different vars_files for the play. So I will provide version of my web app to be installed again in variable MY_VARIABLE. And unexpectedly when these roles will be used in same playbook (different plays of course) it will not work, as demonstrated in the ticket.
So I ask, why should some hidden include_vars task in some role from different play have higher priority than vars_files I specify in the current play?
Thanks
Martin