0 votes
in Ansible by
How can you access a list of Ansible_Variables?

1 Answer

0 votes
by

Ansible gathers facts under machines under management. Further, these facts are accessed in Playbooks and in templates. One of the best ways to view a list of all the facts that are available in a machine, then you need to run the setup module in the ad-hoc way:

Ansible- m setup hostname

Once this statement is executed, it will print out a dictionary of all the facts that are available for that particular host. This is the best way to access the list of Ansible_variables.

Related questions

0 votes
asked Jul 30, 2021 in Ansible by DavidAnderson
0 votes
asked Aug 24, 2019 in Ansible by rahulsharma
...