Ansible collects a lot of the information about the remote hosts as it runs a playbook.

The task of collecting this remote system information is called as Gathering Facts by ansible and the details collected are generally known as facts or variables.

ansible playbooks call this setup module by default to perform Gathering Facts task.

Run the ansible all -m setup command against any host group.


ansible all -m setup | tee ansible-facts.txt

Comments