Interview Prep/Ansible/Vault, Performance and Execution Behaviour

A run failed, but there is no `.retry` file to re-run only the failed hosts

BeginnerTroubleshootingVault, Performance and Execution Behaviour
Answer

Likely causes → retry_files_enabled has defaulted to False since Ansible 2.8.

Fix →

[defaults]
retry_files_enabled = True
retry_files_save_path = ~/.ansible/retry

Then run ansible-playbook site.yml --limit @~/.ansible/retry/site.retry. Alternatively, copy the failed hosts from the recap into --limit.

Prevent → In AWX or CI, use the "relaunch on failed hosts" feature, or make plays idempotent so a full re-run is safe.

All Ansible questions Roadmap: Ansible

More on Vault, Performance and Execution Behaviour