Packages got installed on the CI runner, and every "host" in the output reports the runner's hostname
IntermediateTroubleshootingVault, Performance and Execution Behaviour
Answer
Likely causes → connection: local (play level) or ansible_connection: local (in group_vars/all) was copied from an API-only playbook. Every task now runs on the controller once per inventory host.
Diagnose →
ansible-inventory --host web01 --vars | grep ansible_connection
grep -rn 'connection: local' playbooks/
Fix → Remove the setting, and for API tasks use delegate_to: localhost (or hosts: localhost) only where it is needed. Then clean up the runner.
Prevent → Run CI on ephemeral runners, and add an assert that ansible_facts['hostname'] matches the expected pattern in sensitive roles.
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