mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
commit
ddafed4403
6 changed files with 79 additions and 45 deletions
|
@ -349,9 +349,13 @@ class ActionBase:
|
|||
module_args['_ansible_check_mode'] = True
|
||||
|
||||
# set no log in the module arguments, if required
|
||||
if self._play_context.no_log:
|
||||
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
|
||||
if C.DEFAULT_DEBUG:
|
||||
module_args['_ansible_debug'] = True
|
||||
|
||||
(module_style, shebang, module_data) = self._configure_module(module_name=module_name, module_args=module_args, task_vars=task_vars)
|
||||
if not shebang:
|
||||
raise AnsibleError("module is missing interpreter line")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue