From bb6141ec4134a20ff4d53848b21ae32d67ca017f Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sat, 26 Sep 2015 08:22:32 -0400 Subject: [PATCH] renamed managed_syslog to no_target_syslog --- examples/ansible.cfg | 2 +- lib/ansible/constants.py | 2 +- lib/ansible/plugins/action/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ansible.cfg b/examples/ansible.cfg index 4f61dc4fbc..49da6f098d 100644 --- a/examples/ansible.cfg +++ b/examples/ansible.cfg @@ -182,7 +182,7 @@ fact_caching = memory #no_log = False # prevents logging of tasks, but only on the targets, data is still logged on the master/controller -#managed_syslog = True +#no_target_syslog = True [privilege_escalation] #become=True diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index cd3e0a34a0..8ebc4d5742 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -156,7 +156,7 @@ DEFAULT_INVENTORY_IGNORE = get_config(p, DEFAULTS, 'inventory_ignore_extensions # disclosure DEFAULT_NO_LOG = get_config(p, DEFAULTS, 'no_log', 'ANSIBLE_NO_LOG', False, boolean=True) -DEFAULT_MANAGED_SYSLOG = get_config(p, DEFAULTS, 'managed_syslog', 'ANSIBLE_MANAGED_SYSLOG', True, boolean=True) +DEFAULT_NO_TARGET_SYSLOG = get_config(p, DEFAULTS, 'no_target_syslog', 'ANSIBLE_NO_TARGET_SYSLOG', True, boolean=True) # selinux DEFAULT_SELINUX_SPECIAL_FS = get_config(p, 'selinux', 'special_context_filesystems', None, 'fuse, nfs, vboxsf, ramfs', islist=True) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index ea298d5037..1d603ffd23 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -351,7 +351,7 @@ class ActionBase: module_args['_ansible_check_mode'] = True # set no log in the module arguments, if required - if self._play_context.no_log or not C.DEFAULT_MANAGED_SYSLOG: + if self._play_context.no_log or not C.DEFAULT_NO_TARGET_SYSLOG: module_args['_ansible_no_log'] = True # set debug in the module arguments, if required