From 17666a193953b50d8f6c6c68e68cf43e9369ccab Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 30 Jan 2015 15:18:58 -0500 Subject: [PATCH] changed default for new retry path to be teh same as current also added commented out entries in ansible.cfg to show other options --- examples/ansible.cfg | 5 +++++ lib/ansible/constants.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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)