Commit 1b1d5d0d by someda

fix an issue that copying directory will fail when trying to change file…

fix an issue that copying directory will fail when trying to change file attributes and the target file already exists on remote

- the issue was introduced by the commit 84759faa
parent a21092d7
......@@ -268,6 +268,7 @@ class ActionModule(object):
new_module_args = dict(
src=tmp_src,
dest=dest,
original_basename=source_rel
)
if self.runner.noop_on_check(inject):
new_module_args['CHECKMODE'] = True
......
......@@ -151,5 +151,11 @@
# ignore_errors: True
# register: failed_copy
- name: copy already copied directory again
copy: src=subdir dest={{output_subdir | expanduser}} owner={{ansible_ssh_user}}
register: copy_result5
- name: assert that the directory was not changed
assert:
that:
- "not copy_result5|changed"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment