How To Access System Information (Facts) in Ansible Playbooks
By default, before starting to execute the set of tasks defined in a playbook, Ansible will take a few moments to gather information about the systems that are being provisioned. These are known as *facts*. Ansible facts contain information such as network interfaces and addresses, the operating system running on remote nodes, available memory, among other things. Learn how to access this information from your playbooks.