Categories

Nov 27, 2019 in DevOps
Q: How do I see a list of all the ansible_ variables?

1 Answer

Nov 27, 2019

Ansible by default gathers “facts” about the machines, and these facts can be accessed in Playbooks and in templates. To see a list of all the facts that are available about a machine, you can run the “setup” module as an ad-hoc action:

Ansible -m setup hostname

This will print out a dictionary of all the facts that are available for that particular host.

Click here to read more about DevOps
Click here to read more about Insurance

Related questions

Madanswer
Apr 5 in DevOps
Aug 15 in DevOps
Jul 4 in Insurance
...