Ansible – Access inventory alias

The variable I was searching for is a built in feature: inventory_hostname

Ansible documentation about inventory_hostname and inventory_hostname_short is found from chapter Magic Variables, and How To Access Information About Other Hosts.

Original question: https://groups.google.com/forum/#!topic/ansible-project/Oa5YXjHecIw

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)