Interview Prep/Ansible/Rolling Updates, Delegation and Orchestration

You need to throttle a task so only 2 hosts hit the artifact server at once, while others run in parallel.

BeginnerScenarioRolling Updates, Delegation and Orchestration
Answer

Situation read → Per-task concurrency.

What I'd do →

- ansible.builtin.get_url: { url: "{{ artifact_url }}", dest: /opt/app.tar.gz }
  throttle: 2

Why → throttle limits workers for that task only, without changing forks or serial.

Interview tip → throttle is also useful for rate-limited APIs.

All Ansible questions Roadmap: Ansible

More on Rolling Updates, Delegation and Orchestration