app1 app2 and app3 are groups, not hosts, you have a single host in
all 4 groups, 10.0.0.1 and only one ansible_user/ansible_connection
value (since they are squashed to the single host)

What you probably want is the following:

[Environment]
app1 ansbile_host=10.0.01 ansible_user=user1 ...
app2 ansible_host=10.0.0.1 ...


Inventory hostname is the unique identifier, the above creates app1
and app2 as 'aliases' of the same 'real host' (10.0;0.1)
Since they are unique the variables won't be merged.


-- 
----------
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7dKz_WTZ_9ha5ZVmBw3tMNEb_F4mv-jXBkYbokqHR3ikg%40mail.gmail.com.

Reply via email to