How do you stop Ansible from creating retry files in the home directory

0 votes

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 with '.retry'. Is there a way to turn them off or put them in a different directory?

Jul 11, 2018 in Ansible by Nilesh
• 7,050 points
2,926 views

2 answers to this question.

0 votes

There are two options that you can add to the [defaults] section of the ansible.cfg file that will control whether or not .retry files are created and where they are created.

[defaults]
...
retry_files_enabled = True  # Create them - the default
retry_files_enabled = False # Do not create them
 
retry_files_save_path = "~/" # The directory they will go into
                             # (home directory by default)
answered Jul 11, 2018 by Kalgi
• 2,680 points
+1 vote
[defaults]
...
retry_files_enabled = True  # Create them - the default
retry_files_enabled = False # Do not create them

retry_files_save_path = "~/" # The directory they will go into
                             # (home directory by default)
answered Apr 5, 2019 by anonymous
Is this in ansible.config file?

Related Questions In Ansible

0 votes
1 answer

How do I wget a file from web server using shell in the ansible playbook

Hey Ayaan, you could probably use this ...READ MORE

answered Jan 24, 2019 in Ansible by Anushri
3,841 views
0 votes
1 answer

How do I execute a shell script and then use the result in ansible

This can work out for you: - name: ...READ MORE

answered Apr 11, 2018 in Ansible by shubham
• 7,340 points
6,478 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to see any module details in Ansible from the command line?

Hi@akhtar, Ansible has a very attractive command named ...READ MORE

answered Aug 11, 2020 in Ansible by MD
• 95,440 points
22,545 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,458 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP