0 votes
1 view
in Devops and Agile by (29.1k points)

When Ansible has problems running plays against a host, it will output the name of the host into a file in the user's home directory ending in '.retry'. These are often not used and just cause clutter, is there a way to turn them off or put them in a different directory?

1 Answer

0 votes
by (49.6k points)

For stopping ansible to create .retry files is by disabling .retry files in ansible.cfg

For that goto ansible.cfg 

In ansible.cfg goto defaults here you declare to stop this .retry files 

retry_files_enabled = False # Do not create them

Or you can also change the path using 

retry_files_save_path = "~/" # The directory they will go into

Generally, it will be a home directory by default. 

I hope you got your answer for further reference https://github.com/ansible/ansible/commit/c15b47fb7bbcca965089afc15c2dacf2f8120758?diff=split

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...