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,920 points
882 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
0 votes
[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 by anonymous
Is this in ansible.config file?

Related Questions In Ansible

0 votes
1 answer
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,890 points
1,793 views
0 votes
1 answer
0 votes
1 answer
+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,380 points
252 views
0 votes
1 answer
0 votes
1 answer

Using hyphen in ansible

Hyphen - is used to specify list ...READ MORE

answered Jul 10, 2018 in Ansible by Kalgi
• 2,620 points
299 views
0 votes
1 answer

devops , how to create user using ansible playbook

root doesn't need a password to switch ...READ MORE

answered Jul 16, 2018 in Ansible by Kalgi
• 2,620 points
141 views