copy: state behavior when dest is a nonexisting path

pull/27906/merge
Pierre-Louis Bonicoli 7 years ago committed by Toshio Kuratomi
parent 16f2e47559
commit 1f5c908370

@ -37,8 +37,8 @@ options:
version_added: "1.1" version_added: "1.1"
dest: dest:
description: description:
- Remote absolute path where the file should be copied to. If I(src) is a directory, this must be a directory too and - Remote absolute path where the file should be copied to. If I(src) is a directory, this must be a directory too.
I(dest) directory is created when it doesn't exist. If I(dest) is a nonexistent path and if either I(dest) ends with "/" or I(src) is a directory, I(dest) is created.
If I(src) and I(dest) are files, then parent directory of I(dest) isn't created: the task fails if it doesn't already exist. If I(src) and I(dest) are files, then parent directory of I(dest) isn't created: the task fails if it doesn't already exist.
required: yes required: yes
backup: backup:

Loading…
Cancel
Save