What are Ansible Facts

From bib. source

[…] whenever you run an Ansible playbook, Ansible first gathers information (“facts”) about each host in the play.

These facts gathered by Ansible about a server / host include (Geerling 2023, 99):

One can get a list of all the available information about a server / host using the ansible command with the setup module, e.g. (Ibid):

ansible munin -m setup

Or, put more generally:

ansible $INVENTORY_FILE_GROUP -m setup

Internet_Protocol Internet_Protocol_address IP_address address addresses Central_Processing_Unit storage storage_device operating_system Operating_System network_interface network_interfaces


bibliography

  • “Ansible Playbooks - Beyond the Basics.” In Ansible for DevOps: Server and Configuration Management for Humans, 2nd ed., 84–122. Leanpub, 2023.