mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Merge pull request #8271 from tksmd/fix-copy-set-fs-attributes-issue
fix an issue that copying directory will fail when trying to change file attributes
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user