Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k 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 (50.2k 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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...