An `uri` call to the CMDB returns `HTTP Error 429: Too Many Requests` for most hosts
IntermediateTroubleshootingVault, Performance and Execution Behaviour
Answer
Likely causes → With forks: 50, fifty hosts hit the API at the same moment, and the API rate-limits.
Fix →
- ansible.builtin.uri:
url: https://cmdb.internal/api/hosts/{{ inventory_hostname }}
delegate_to: localhost
throttle: 5
register: cmdb
until: cmdb.status != 429
retries: 5
delay: 10
throttle limits only this task, without slowing the rest of the play.
Prevent → Use throttle for shared external dependencies (APIs, license servers, package mirrors), or make one bulk API call with run_once.
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