Hello,

Thanks a lot for your help! From what I understand is that the ansible_host 
should be the actual hostname (dns entry). Is there any way to pass the to the 
ansible_host the name of an entry in the host_vars?

For example, I have in the host_vars directory, the folder Host1 where it has a 
vars.yml where one of the variables is ansible_host: "1.2.3.4".
In order to use your approach I will need to add the ansible_host inline in the 
inventory like this:
[GroupA]
host1A ansible_host="1.2.3.4"

[GroupB]
host1B ansible_host="1.2.3.4"

What I would like to do is to have something like this

[GroupA]
host1A ansible_host=Host1

[GroupB]
host1B ansible_host=Host1

Is this feasible?
If it is not feasible, I will have to add all the variables in the inventory 
and this will not be so clean.

Best Regards,
Konstantinos

-- 
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/3f453be4-1f87-48f3-bd80-95d679787761%40googlegroups.com.

Reply via email to