The rolling deploy stops after the second batch with `NO MORE HOSTS LEFT`
IntermediateTroubleshootingVault, Performance and Execution Behaviour
Answer
Likely causes → Every host in the batch failed, or max_fail_percentage was exceeded, or any_errors_fatal: true was triggered. Ansible then ends the play, and later batches never start. That is intentional.
Diagnose → Scroll up to the first fatal: in the failing batch, and check the PLAY RECAP for failed= and unreachable=.
Fix → Fix the cause on the failed hosts, then continue with only the hosts that are not yet updated:
ansible-playbook deploy.yml --limit 'app:!app-0[1-4]'
Prevent → Add a health check at the end of each batch so a bad release stops early. Write deploys so that a re-run on already-updated hosts is a no-op.
More on Vault, Performance and Execution Behaviour
`ERROR! Attempting to decrypt but no vault secrets found`Beginner`ERROR! Decryption failed (no vault secrets were found that could decrypt) on inventories/prod/group_vars/all/vault.yml`BeginnerBoth `--vault-id [email protected]` and `--vault-id prod@prompt` are passed, and prod files still fail to decryptIntermediate`Vault format unhexlify error: Odd-length string` after pasting an `encrypt_string` valueIntermediate`Problem running vault password script /home/ci/.vault_pass ([Errno 8] Exec format error). If this is not a script, remove the executable bit from the file.`AdvancedEvery change to `vault.yml` produces an unreadable diff and constant merge conflictsIntermediate