|
|
@ -1927,6 +1927,62 @@
|
|
|
|
- "stat_testcase4_local_follow_false_remote_dir_src_link_file12.stat.exists"
|
|
|
|
- "stat_testcase4_local_follow_false_remote_dir_src_link_file12.stat.exists"
|
|
|
|
- "stat_testcase4_local_follow_false_remote_dir_src_link_file12.stat.islnk"
|
|
|
|
- "stat_testcase4_local_follow_false_remote_dir_src_link_file12.stat.islnk"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- block:
|
|
|
|
|
|
|
|
- name: execute - Clone the source directory on remote
|
|
|
|
|
|
|
|
copy:
|
|
|
|
|
|
|
|
remote_src: True
|
|
|
|
|
|
|
|
src: '{{ remote_dir }}/remote_dir_src/'
|
|
|
|
|
|
|
|
dest: '{{ remote_dir }}/testcase5_remote_src_subdirs_src'
|
|
|
|
|
|
|
|
- name: Create a 2nd level subdirectory
|
|
|
|
|
|
|
|
file:
|
|
|
|
|
|
|
|
path: '{{ remote_dir }}/testcase5_remote_src_subdirs_src/subdir/subdir2/'
|
|
|
|
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: execute - Copy the directory on remote
|
|
|
|
|
|
|
|
copy:
|
|
|
|
|
|
|
|
remote_src: True
|
|
|
|
|
|
|
|
src: '{{ remote_dir }}/testcase5_remote_src_subdirs_src/'
|
|
|
|
|
|
|
|
dest: '{{ remote_dir }}/testcase5_remote_src_subdirs_dest'
|
|
|
|
|
|
|
|
local_follow: True
|
|
|
|
|
|
|
|
- name: execute - Create a new file in the subdir
|
|
|
|
|
|
|
|
copy:
|
|
|
|
|
|
|
|
dest: '{{ remote_dir }}/testcase5_remote_src_subdirs_src/subdir/subdir2/file13'
|
|
|
|
|
|
|
|
content: 'very new file'
|
|
|
|
|
|
|
|
- name: gather - Stat the testcase5_remote_src_subdirs_src/subdir/subdir2/file13
|
|
|
|
|
|
|
|
stat:
|
|
|
|
|
|
|
|
path: '{{ remote_dir }}/testcase5_remote_src_subdirs_src/subdir/subdir2/file13'
|
|
|
|
|
|
|
|
- name: execute - Copy the directory on remote
|
|
|
|
|
|
|
|
copy:
|
|
|
|
|
|
|
|
remote_src: True
|
|
|
|
|
|
|
|
src: '{{ remote_dir }}/testcase5_remote_src_subdirs_src/'
|
|
|
|
|
|
|
|
dest: '{{ remote_dir }}/testcase5_remote_src_subdirs_dest/'
|
|
|
|
|
|
|
|
register: testcase5_new
|
|
|
|
|
|
|
|
- name: execute - Edit a file in the subdir
|
|
|
|
|
|
|
|
copy:
|
|
|
|
|
|
|
|
dest: '{{ remote_dir }}/testcase5_remote_src_subdirs_src/subdir/subdir2/file13'
|
|
|
|
|
|
|
|
content: 'NOT hello world 12'
|
|
|
|
|
|
|
|
- name: gather - Stat the testcase5_remote_src_subdirs_src/subdir/subdir2/file13
|
|
|
|
|
|
|
|
stat:
|
|
|
|
|
|
|
|
path: '{{ remote_dir }}/testcase5_remote_src_subdirs_src/subdir/subdir2/file13'
|
|
|
|
|
|
|
|
register: stat_testcase5_remote_src_subdirs_file13_before
|
|
|
|
|
|
|
|
- name: execute - Copy the directory on remote
|
|
|
|
|
|
|
|
copy:
|
|
|
|
|
|
|
|
remote_src: True
|
|
|
|
|
|
|
|
src: '{{ remote_dir }}/testcase5_remote_src_subdirs_src/'
|
|
|
|
|
|
|
|
dest: '{{ remote_dir }}/testcase5_remote_src_subdirs_dest/'
|
|
|
|
|
|
|
|
register: testcase5_edited
|
|
|
|
|
|
|
|
- name: gather - Stat the testcase5_remote_src_subdirs_dest/subdir/subdir2/file13
|
|
|
|
|
|
|
|
stat:
|
|
|
|
|
|
|
|
path: '{{ remote_dir }}/testcase5_remote_src_subdirs_dest/subdir/subdir2/file13'
|
|
|
|
|
|
|
|
register: stat_testcase5_remote_src_subdirs_file13
|
|
|
|
|
|
|
|
- name: assert - remote_dir_src has copied with local_follow False.
|
|
|
|
|
|
|
|
assert:
|
|
|
|
|
|
|
|
that:
|
|
|
|
|
|
|
|
- testcase5_new is changed
|
|
|
|
|
|
|
|
- testcase5_edited is changed
|
|
|
|
|
|
|
|
- "stat_testcase5_remote_src_subdirs_file13.stat.exists"
|
|
|
|
|
|
|
|
- "stat_testcase5_remote_src_subdirs_file13_before.stat.checksum == stat_testcase5_remote_src_subdirs_file13.stat.checksum"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## test copying the directory on remote with chown
|
|
|
|
## test copying the directory on remote with chown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|