Hi

I have an inventory defined as below:

[A]
host1.example.com lhost=1010
host2.example.com lhost=1110

[B]
host1.example.com lhost=2010

now when i run below command on group A for host1.example.com ansible picks 
up the host in group B

# ansible -i inventory A -m shell -a "ls -l /tmp/{{ lhost }}"

*output*

ls: no such file or directory /tmp/2010

*expected:*  Ansible should execute on host1 in group A and not group B

Is this behaviour intentional or am i running into some bug or is there 
something wrong with the command execution.


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f54f4eda-c2b1-4da2-a26a-355356a86f95n%40googlegroups.com.

Reply via email to