0 votes
in DevOps by
How to get a list of Ansible predefined variables?

1 Answer

0 votes
by
Ansible stores facts about machines under management by default and these can be accessed in playbooks and templates. To get a list of all the facts that are available about a machine, run a setup module as an ad-hoc action:

Ansible -m setup hostname

This will present all the facts that are available under that particular host.

Related questions

0 votes
asked Nov 27, 2019 in DevOps by rajeshsharma
0 votes
asked Aug 24, 2019 in Ansible by rahulsharma
...