Interview Prep/Ansible/Vault, Performance and Execution Behaviour

Runs on the controller start failing with `[Errno 28] No space left on device`

IntermediateTroubleshootingVault, Performance and Execution Behaviour
Answer

Likely causes → Something fills the controller's disk over time: a growing log_path file, a jsonfile fact cache for thousands of hosts, fetch tasks that download files on every run, or leftover ~/.ansible/tmp directories from killed runs.

Diagnose →

df -h ~ /tmp
du -sh ~/.ansible/* /var/log/ansible.log 2>/dev/null

Fix → Clean up and rotate: add a logrotate rule for the Ansible log, prune the fact cache, and set fetch destinations under a directory that is cleaned. Remove stale ~/.ansible/tmp/ansible-local-* directories.

Prevent → Run controllers ephemerally (CI containers, AWX execution environments), or monitor disk usage on long-lived controllers.

All Ansible questions Roadmap: Ansible

More on Vault, Performance and Execution Behaviour