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
• 6,970 points
1,271 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,620 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
1,295 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
• 6,910 points
2,791 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

stopping different hosts from reading the same value when usign ansible in loop

Try using this. Create a new directory ...READ MORE

answered Jul 27, 2018 in Ansible by DareDev
• 6,850 points
86 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
536 views
0 votes
1 answer