Ansible interview question

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

Scenario Asked in DevOps Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

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. Fix the cause, then re-run only the failed hosts with --limit @site.retry or --limit on a group; idempotent tasks make that safe.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Ansible questions

← All Ansible questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake