Adding no_log: capability for tasks

Fixes #4088
This commit is contained in:
James Cammarata
2014-01-31 16:09:10 -06:00
parent 193657e635
commit 75e3b59bbd
9 changed files with 30 additions and 10 deletions

View File

@@ -220,6 +220,8 @@ class ActionModule(object):
pipes.quote(tmp_src), pipes.quote(source_rel))
if self.runner.noop_on_check(inject):
module_args_tmp = "%s CHECKMODE=True" % module_args_tmp
if self.runner.no_log:
module_args_tmp = "%s NO_LOG=True" % module_args_tmp
module_return = self.runner._execute_module(conn, tmp, 'file', module_args_tmp, inject=inject, complex_args=complex_args)
module_result = module_return.result

View File

@@ -45,6 +45,9 @@ class ActionModule(object):
# python modules for now
module_args += " CHECKMODE=True"
if self.runner.no_log:
module_args += " NO_LOG=True"
# shell and command are the same module
if module_name == 'shell':
module_name = 'command'