mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
copy: check non-existing one level directory too
This commit is contained in:
parent
470989bff9
commit
6f47b3e9e8
2 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
- name: Copy file, dest is a file in non-existing target directory
|
||||
copy:
|
||||
src: foo.txt
|
||||
dest: '{{ remote_dir }}/new_sub_dir1/sub_dir2/foo.txt'
|
||||
dest: '{{ dest }}'
|
||||
register: copy_result
|
||||
ignore_errors: True
|
||||
|
||||
|
|
|
@ -938,3 +938,8 @@
|
|||
|
||||
# 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'
|
||||
loop_control:
|
||||
loop_var: 'dest'
|
||||
|
|
Loading…
Reference in a new issue