0Pricing
Ansible Academy · Lesson

SSH Pipelining & Connection Reuse

Cut overhead per task.

SSH Overhead Adds Up

Every task can mean a fresh login, file copy and execution over SSH. Multiply that by many tasks and many hosts and the overhead dominates the run.

How a Task Normally Runs

By default Ansible copies a module to the host, runs it, then cleans up. Each step costs an SSH round trip you can often avoid.

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