Fix always_run support in the action plugin for template when copying
Fixes #13418
This commit is contained in:
parent
50e5b0f8e9
commit
45670eff81
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ class ActionModule(ActionBase):
|
||||||
if self._play_context.diff:
|
if self._play_context.diff:
|
||||||
diff = self._get_diff_data(dest, resultant, task_vars, source_file=False)
|
diff = self._get_diff_data(dest, resultant, task_vars, source_file=False)
|
||||||
|
|
||||||
if not self._play_context.check_mode: # do actual work thorugh copy
|
if not self._play_context.check_mode or self._task.always_run: # do actual work thorugh copy
|
||||||
xfered = self._transfer_data(self._connection._shell.join_path(tmp, 'source'), resultant)
|
xfered = self._transfer_data(self._connection._shell.join_path(tmp, 'source'), resultant)
|
||||||
|
|
||||||
# fix file permissions when the copy is done as a different user
|
# fix file permissions when the copy is done as a different user
|
||||||
|
|
Loading…
Reference in a new issue