how to use ansible built-in variables #2011
Answered
by
sthiel-mpi
shaoqin178
asked this question in
Q&A
-
When I use the built-in variables
|
Beta Was this translation helpful? Give feedback.
Answered by
sthiel-mpi
May 9, 2024
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fiftin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
oransible_fqdn