gather_facts
The play keyword that turns fact gathering at the start of the play on or off.
In more detail
It defaults to true. Set it to false in plays that use no facts, which saves time on every host; set it to true, or leave it, when tasks or conditions read facts.
Related terms
- fact gathering — The automatic first step of a play that runs the setup module on every host to collect its facts.
- fact — A variable Ansible discovers about a host itself, such as its operating system, host name, memory or network addresses.
- play — One section of a playbook that picks a set of hosts with a pattern and lists the tasks to run on them, in order.
Taught in
- What Configuration Management Is — Ansible Configuration Management at Scale
- Installing Ansible — Ansible Configuration Management at Scale
- Connections And Privilege Escalation — Ansible Configuration Management at Scale
- Playbook Syntax And YAML — Ansible Configuration Management at Scale
- Writing Your First Playbook — Ansible Configuration Management at Scale
- Modules And Idempotency — Ansible Configuration Management at Scale
- Check Mode And Diff — Ansible Configuration Management at Scale
- Handlers And Notify — Ansible Configuration Management at Scale
- Variables And Precedence — Ansible Configuration Management at Scale
- Gathering Facts — Ansible Configuration Management at Scale
- Conditionals — Ansible Configuration Management at Scale
- Loops — Ansible Configuration Management at Scale
- Templates With Jinja — Ansible Configuration Management at Scale
- Error Handling With Block, Rescue And Always — Ansible Configuration Management at Scale
- Writing A Role — 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
- Roles: The Directory Ansible Expects, Defaults And Handlers — RHCE in Ansible (EX294): Automate Red Hat Systems