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
How to get a hold of the hostname from inventory file?
Ansible Project
ansible-project
0
9
October 8, 2014
Ansible facts help (ansible_fqdn)
Ansible Project
12
208
November 25, 2014
hostname supplied on the cmd line
Ansible Project
2
24
August 30, 2013
How to access host inventory file entry from playbook?
Ansible Project
2
19
September 11, 2013