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):
- The public IP address
- The CPU type
- The disk space
- OS information
- Network interface information And much more.
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 setupOr, put more generally:
ansible $INVENTORY_FILE_GROUP -m setupInternet_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.