delegation
3 Ansible tutorials tagged “delegation”. Working examples covering automation, configuration management, and DevOps workflows.
Ansible delegate_to: Run Tasks on Localhost & Other Hosts
playbooks · 4
Ansible delegate_to runs tasks on localhost or remote hosts while keeping variable context. Guide with load balancer, database, monitoring, and DNS examples.
Ansible run_once — Execute a Task Only Once Across All Hosts
playbooks · 6
Use Ansible run_once to execute a task on a single host in a play. Understand how it works with serial, strategy free, delegate_to, and when to use it.
Ansible run_once — Execute a Task on Only One Host
playbooks · 3
How to use Ansible run_once to execute tasks on a single host in a multi-host play. Examples with delegation, serial, and common pitfalls.