|
|
|
@ -931,16 +931,16 @@
|
|
|
|
|
# checks that dest is created
|
|
|
|
|
- include: dest_in_non_existent_directories.yml
|
|
|
|
|
with_items:
|
|
|
|
|
- { src: 'foo.txt', dest: 'sub_dir2/', check: 'foo.txt' }
|
|
|
|
|
- { src: 'subdir', dest: 'sub_dir2/', check: 'subdir/bar.txt' }
|
|
|
|
|
- { src: 'subdir/', dest: 'sub_dir2/', check: 'bar.txt' }
|
|
|
|
|
- { src: 'subdir', dest: 'sub_dir2', check: 'subdir/bar.txt' }
|
|
|
|
|
- { src: 'subdir/', dest: 'sub_dir2', check: 'bar.txt' }
|
|
|
|
|
- { src: 'foo.txt', dest: 'new_sub_dir1/sub_dir2/', check: 'new_sub_dir1/sub_dir2/foo.txt' }
|
|
|
|
|
- { src: 'subdir', dest: 'new_sub_dir1/sub_dir2/', check: 'new_sub_dir1/sub_dir2/subdir/bar.txt' }
|
|
|
|
|
- { src: 'subdir/', dest: 'new_sub_dir1/sub_dir2/', check: 'new_sub_dir1/sub_dir2/bar.txt' }
|
|
|
|
|
- { src: 'subdir', dest: 'new_sub_dir1/sub_dir2', check: 'new_sub_dir1/sub_dir2/subdir/bar.txt' }
|
|
|
|
|
- { src: 'subdir/', dest: 'new_sub_dir1/sub_dir2', check: 'new_sub_dir1/sub_dir2/bar.txt' }
|
|
|
|
|
|
|
|
|
|
# src is a file, dest is file in a non-existent directory: checks that a failure occurs
|
|
|
|
|
- include: src_file_dest_file_in_non_existent_dir.yml
|
|
|
|
|
with_items:
|
|
|
|
|
- '{{ remote_dir }}/new_sub_dir1/sub_dir2/foo.txt'
|
|
|
|
|
- '{{ remote_dir }}/new_sub_dir1/foo.txt'
|
|
|
|
|
- 'new_sub_dir1/sub_dir2/foo.txt'
|
|
|
|
|
- 'new_sub_dir1/foo.txt'
|
|
|
|
|
loop_control:
|
|
|
|
|
loop_var: 'dest'
|
|
|
|
|