I am using Ansible 2.1. I have the following inventory host file and a role being called by a play that needs access to the host file variable. Any thoughts on how to acce
You should be able to use the variable name directly
ansible_ssh_host
Or you can go through hostvars without having to specify the host literally by using the magic variable inventory_hostname
inventory_hostname
hostvars[inventory_hostname].ansible_ssh_host