Script module should return changed attribute so handlers always fire, unless "changed_when" is specified.
Fixes #4053
This commit is contained in:
parent
a7adc8ef4d
commit
5ed28efe45
1 changed files with 2 additions and 0 deletions
|
@ -75,4 +75,6 @@ class ActionModule(object):
|
||||||
if tmp.find("tmp") != -1 and not C.DEFAULT_KEEP_REMOTE_FILES:
|
if tmp.find("tmp") != -1 and not C.DEFAULT_KEEP_REMOTE_FILES:
|
||||||
self.runner._low_level_exec_command(conn, 'rm -rf %s >/dev/null 2>&1' % tmp, tmp)
|
self.runner._low_level_exec_command(conn, 'rm -rf %s >/dev/null 2>&1' % tmp, tmp)
|
||||||
|
|
||||||
|
result.result['changed'] = True
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in a new issue