Your plays are at the level of top env (assumed from how you call debug.yml) and they load that group_vars, this is how you load inventory vars at the play level (different from play vars). It is meant to override the inventory as plays are more specific than inventory.
if you do not want this to be the case, put the inventory outside the same hier, env/ plays/ Then it would be ansible-playbook -i ../env/dev debug.yml and the ../env/group_vars/all will NOT be sourced. You are mixing 2 loading methods, one is part of inventory, the other part of plays, I think this is what is confusing you. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mFCFH%3DYKGFTOJ25LeBsrenE%3DK%2B0pv%3DU5gEj2%2BhO94gzA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
