0Pricing
Ansible Academy · Lesson

Strategies: linear, free & host_pinned

Change how plays sweep hosts.

Strategy Sets the Pace

A strategy plugin decides how hosts march through the tasks of a play. It controls whether they move in step or each go at their own speed.

linear Is the Default

The default linear strategy runs one task on every host, waits for all to finish, then moves to the next task together.

- hosts: web
  strategy: linear

All lessons in this course

  1. forks & Parallelism Tuning
  2. Strategies: linear, free & host_pinned
  3. SSH Pipelining & Connection Reuse
  4. serial & Rolling Batch Execution
← Back to Ansible Academy