--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/27dd466e-307a-4f91-ae6d-0a400c9f5b06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm not sure I understand this particular question.When you say hosts file, is this about restructuring your ansible inventory file?
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/dbb26048-f4ff-49b3-8a73-1951969e182f%40googlegroups.com.
"which can be set in the plays so that another different host gets processed instead."
If ansible_ssh_host is set as a variable name on the host, either in the INI file or hostvars/hostname, the address given for ansible_ssh_host is used to contact the system rather than the verbatim name of the host, basically, it becomes an alias. Similarly, ansible_ssh_port is also a thing.
Thank you kindly. That works really well.