Categories

Nov 13, 2019 in Ansible

Q: How can you see all variables for a host?

1 Answer

Nov 13, 2019

You can see all the variables using the host vary variable. It stores host variables with the hostname as key. For example, to look at the variables defined for localhost, you can run the following command, such as:

Click here to read more about Ansible
Click here to read more about Insurance

Related questions

Madanswer
Nov 27, 2019 in DevOps
Nov 5, 2019 in Ansible
Nov 13, 2019 in Ansible
...