Interview Prep/Ansible/Performance, Testing and CI/CD

Playbook runs against 1000 hosts are failing intermittently with SSH timeouts.

AdvancedScenarioPerformance, Testing and CI/CD
Answer

Situation read → Likely concurrency overload on the control node or network.

What I'd do →

  1. Check forks vs. bastion MaxStartups and controller CPU.
  2. Set timeout = 30 and retries = 3 under [ssh_connection].
  3. Reduce forks, enable ControlPersist and pipelining.
  4. Use serial to limit batch size.

Why → Too many simultaneous handshakes drop connections.

Interview tip → Distinguish "unreachable" (connection) from "failed" (task) in the recap.

All Ansible questions Roadmap: Ansible

More on Performance, Testing and CI/CD