fact gathering
The automatic first step of a play that runs the setup module on every host to collect its facts.
In more detail
It shows in the output as a Gathering Facts task you did not write, and it counts in the recap. It costs time on every host, so plays that use no facts should set gather_facts: false. Fact caching can avoid repeating it on every run.
Related terms
- fact — A variable Ansible discovers about a host itself, such as its operating system, host name, memory or network addresses.
- gather_facts — The play keyword that turns fact gathering at the start of the play on or off.
- setup module — The module that collects facts about a host, such as its operating system, memory and network addresses.
- fact caching — Storing gathered facts between runs, so later plays can reuse them instead of collecting them again from every host.
Taught in
- Installing Ansible — Ansible Configuration Management at Scale
- Gathering Facts — Ansible Configuration Management at Scale
- Performance, Forks And Best Practices — Ansible Configuration Management at Scale
- SSH Keys And An Account For Ansible — RHCE in Ansible (EX294): Automate Red Hat Systems
- Privilege Escalation: sudo Rules And become — RHCE in Ansible (EX294): Automate Red Hat Systems
- Facts And Magic Variables: Let Each Node Describe Itself — RHCE in Ansible (EX294): Automate Red Hat Systems
- RHEL System Roles: timesync And selinux From A Collection — RHCE in Ansible (EX294): Automate Red Hat Systems
- Storage: Partitions, Volume Groups And Volumes Where The Disk Exists — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: Storage Only Where The Disk Exists — RHCE in Ansible (EX294): Automate Red Hat Systems