Ansible
playbooks with no gatherfacts and using fqdn
Archives
Ansible Project
ansible-project
Kai_Stian_Olstad
(Kai Stian Olstad)
August 7, 2019, 5:39pm
1
{{ inventory_hostname }} or {{ ansible_host }} depending on how your inventory.
Related topics
Topic
Replies
Views
Activity
Dict - How to get correct values
Ansible Project
ansible-project
0
1
October 20, 2016
Gather Facts failed due resolve hostname inventory_hostname
Ansible Project
14
48
June 2, 2023
Ansible facts help (ansible_fqdn)
Ansible Project
12
128
November 25, 2014
How to get a hold of the hostname from inventory file?
Ansible Project
ansible-project
0
4
October 8, 2014
querry about ansible inventory
Ansible Project
0
1
November 17, 2021