in Ansible by
Q:
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.

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

Related questions

0 votes
asked Oct 7, 2020 in Ansible by Robindeniel
0 votes
asked Feb 17, 2020 in Ansible by MBarbieri
0 votes
asked Jan 2 in Python by SakshiSharma
0 votes
asked Dec 20, 2019 in Service Discovery by sharadyadav1986
...