diff --git a/examples/ansible.cfg b/examples/ansible.cfg index 4f61dc4fbcb..49da6f098db 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 cd3e0a34a0a..8ebc4d5742b 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 ea298d5037d..1d603ffd230 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