in Ansible by (23.9k points)
How can you see all variables for a host?

1 Answer

0 votes
by (32.2k points)

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:

Related questions

0 votes
0 votes
asked Nov 27, 2019 in DevOps by rajeshsharma (23.9k points)
0 votes
asked Nov 13, 2019 in Ansible by rajeshsharma (23.9k points)
0 votes
asked Nov 5, 2019 in Ansible by Robin (14.6k points)
...