Daily challenges →
🌊 Ansible medium ⚡ 65 XP

What is the difference between `ignore_errors` and `failed_when`?

ignore_errors: yes continues even if the task fails (imprecise). failed_when: result.rc != 0 and "ERROR" in result.stderr defines exactly when to fail. Prefer failed_when for intentional error handling.

🌊 This is a free sample — 507+ more questions on DevOps Ocean

Sign in free to practice the full question bank with daily challenges, XP, streaks, duels and a global leaderboard.

Practice the full bank — free →