in DevOps by
Q:
How do I see a list of all the ansible_ variables?

▼ Show 1 Answer

0 votes
by

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.

DevOps
Learn More with Madanswer

Related questions

0 votes
asked Feb 11 in Python by SakshiSharma
...