Disabling Retry Files In Ansible

#ansible #sysadmin

If you want to stop Ansible from creating the .retry files or move them to a different directory other then CWD, you can change the following settings in your ansible.cfg

# Enables/disables creation of .retry files
retry_files_enabled = False

# Directory to place them in if enabled
retry_files_save_path = ~/.ansible-retry