in DevOps by
Q:

How do I see a list of all the ansible_ variables?

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.

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

Related questions

0 votes
asked Feb 11 in Python by SakshiSharma
0 votes
asked Apr 5, 2020 in DevOps by ryan harris
0 votes
asked Jul 4, 2020 in Insurance by Robindeniel
+1 vote
asked Jul 25, 2019 in Git by SakshiSharma
0 votes
asked May 26, 2020 in Amazon Elastic Compute Cloud EC2 by Indian
...