diff --git a/examples/ansible.cfg b/examples/ansible.cfg index cfcc9464b59..67aa039608e 100644 --- a/examples/ansible.cfg +++ b/examples/ansible.cfg @@ -154,6 +154,11 @@ filter_plugins = /usr/share/ansible_plugins/filter_plugins # current IP information. fact_caching = memory + +# retry files +#retry_files_enabled = False +#retry_files_save_path = ~/.ansible-retry + [paramiko_connection] # uncomment this line to cause the paramiko connection plugin to not record new host diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index eda5ca1a91e..b7aca6f36f6 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -162,7 +162,7 @@ COMMAND_WARNINGS = get_config(p, DEFAULTS, 'command_warnings', 'AN DEFAULT_LOAD_CALLBACK_PLUGINS = get_config(p, DEFAULTS, 'bin_ansible_callbacks', 'ANSIBLE_LOAD_CALLBACK_PLUGINS', False, boolean=True) RETRY_FILES_ENABLED = get_config(p, DEFAULTS, 'retry_files_enabled', 'ANSIBLE_RETRY_FILES_ENABLED', True, boolean=True) -RETRY_FILES_SAVE_PATH = get_config(p, DEFAULTS, 'retry_files_save_path', 'ANSIBLE_RETRY_FILES_SAVE_PATH', '~/.ansible-retry') +RETRY_FILES_SAVE_PATH = get_config(p, DEFAULTS, 'retry_files_save_path', 'ANSIBLE_RETRY_FILES_SAVE_PATH', '~/') # CONNECTION RELATED ANSIBLE_SSH_ARGS = get_config(p, 'ssh_connection', 'ssh_args', 'ANSIBLE_SSH_ARGS', None)