0 votes
in DevOps by
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.

Related questions

0 votes
asked Aug 15, 2023 in ReactJS by GeorgeBell
0 votes
asked Dec 1, 2019 in DevOps by SakshiSharma
...