Aug 30 in DevOps
Q: How to get a list of Ansible predefined variables?

1 Answer

0 votes
Aug 30
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
Dec 1, 2019 in DevOps
0 votes
Jun 28, 2020 in Python
...