Problem Statement
Which block in Ansible is used for handling task failures?
Explanation
Ansible uses 'block', 'rescue', and 'always' blocks to handle errors gracefully.
Tasks in the block are executed normally; if a failure occurs, the rescue section runs recovery steps. The always section executes regardless of success or failure, ensuring predictable cleanup operations.
