Skip to content

how to use ansible built-in variables #2011

Answered by sthiel-mpi
shaoqin178 asked this question in Q&A
Discussion options

You must be logged in to vote

I am unsure if I am missing something but to my knowledge, there is no ssh-specific host variable (see https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html). To access the hostname I usually use ansible_host or ansible_fqdn

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fiftin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2006 on May 10, 2024 11:22.