Copying a 4 GB artifact with `copy` takes 20 minutes per host and sometimes times out
IntermediateTroubleshootingVault, Performance and Execution Behaviour
Answer
Likely causes → copy checksums the file on both sides and pushes it from the controller over SSH to every host, so the controller's uplink becomes the bottleneck.
Fix → Have the targets pull the artifact instead:
- ansible.builtin.get_url:
url: "https://artifacts.internal/app/{{ app_version }}/app.tar.gz"
dest: /opt/app/app.tar.gz
checksum: "sha256:{{ app_sha256 }}"
For directory trees, use ansible.posix.synchronize, which needs rsync on both ends.
Prevent → Store artifacts in a repository (S3, Artifactory, Nexus) close to the hosts. Do not ship large binaries from the controller.
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