And run the playbook with
ansible-playbook -i …/proj1/inventory -i …/proj2/inventory playbook.yml
Apparently proj2’s all.vars will override proj1’s, so bar shows “from 2 all”, which is not what I want.
I want proj3’s inventory to have two groups, group1 and group2, where proj1’s all.vars become group1’s group vars, ditto for proj2, so all.vars don’t get overridden. In the test case, I’d like bar to be “from 1 all”
nothing will autogenerate discrete groups that way, conflicts will be
resolved by overwriting.
You'll have to script something that processes each inventory and
rewrites the entries to what you want.