Ansible
How to get a hold of the hostname from inventory file?
Archives
Ansible Project
ansible-project
Serge_van_Ginderacht
(Serge van Ginderachter)
October 8, 2014, 1:59pm
1
that would be the special var inventory_hostname
Related topics
Topic
Replies
Views
Activity
Get host name from inventory on remote host?
Ansible Project
4
81
May 2, 2012
Inventory hostname as variable ?
Ansible Project
3
33
September 27, 2012
inventory_hostname / ansible_host
Ansible Project
1
11
November 27, 2019
How to access host inventory file entry from playbook?
Ansible Project
2
12
September 11, 2013
How to get the hostname into jinja file
Ansible Project
1
45
June 26, 2021