Interview Q&A · questions with model answers

Ansible Interview Questions

Part of the study plan for: DevOps Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. A playbook run fails halfway through 50 hosts. What do you do?

    Stop and assess before re-running: see which hosts failed and why (the recap and -vvv output), whether the failed task left anything half-changed, and whether the hosts that succeeded are healthy.…

  2. A playbook takes 40 minutes across 300 hosts. How do you speed it up?

    Find where the time goes first (callbacks_enabled = profile_tasks, timer), then attack the usual causes: too few forks, SSH overhead, fact gathering, slow package tasks run one item at a time, and…

Was this page helpful?

Report a mistake