On 300 hosts, every task seems to run in batches of five
BeginnerTroubleshootingVault, Performance and Execution Behaviour
Answer
Likely causes → The default forks is 5. Ansible only talks to five hosts at a time per task.
Diagnose → ansible-config dump | grep -i forks
Fix →
[defaults]
forks = 50
Size this to the controller's CPU and memory. Every fork is a Python process.
Prevent → Set forks in the project's ansible.cfg, and measure with callbacks_enabled = ansible.posix.profile_tasks, ansible.posix.timer.
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