I would like to reuse some variables defined under a role in an inventory file. For example,
a file inventory/myhost, it contains following line
myhost ansible_ssh_host={{ myhost_ip_address }}
By reading Ansible documentation and searching possible solutions, I did not get a solution so far. I'm wondering if it's possible to use variable in inventory. Your help will be much appreciated. Thanks!
Regards,
Chenxiong Qi