Ansible & Configuration
Delegate_to
Delegate_to runs a task on a different machine.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A command to try yourself
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Ansible & Configuration
- TagsBeginner · 4 min
Tags limit task execution to selected subsets.
- Serial rolling updatesBeginner · 5 min
Serial rolling updates limits batch size across hosts.
- Async tasksBeginner · 4 min
Async tasks start long-running remote operations.
- Inventory designBeginner · 4 min
Explain how Ansible inventory groups decide which hosts a play touches. Designing groups by role and location keeps each run narrow and easy to check before it starts.
- Group variables precedenceIntermediate · 4 min
Explain how Ansible ranks variables from group files, playbook vars and extra vars. The highest-ranked source wins, so a copied value in a playbook can hide every group…
- Host variablesIntermediate · 4 min
Explain how host variables and host_vars files set one host's values above its group. A host file gives an exception without copying the group's default into every host.