copy: use formatting options

pull/27906/merge
Pierre-Louis Bonicoli 8 years ago committed by Toshio Kuratomi
parent 28eb9466c7
commit 16f2e47559

@ -32,14 +32,14 @@ options:
is copied. This behavior is similar to Rsync. is copied. This behavior is similar to Rsync.
content: content:
description: description:
- When used instead of 'src', sets the contents of a file directly to the specified value. - When used instead of I(src), sets the contents of a file directly to the specified value.
For anything advanced or with formatting also look at the template module. For anything advanced or with formatting also look at the template module.
version_added: "1.1" version_added: "1.1"
dest: dest:
description: description:
- Remote absolute path where the file should be copied to. If C(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 and
dest directory is created when it doesn't exist. I(dest) directory is created when it doesn't exist.
If src and dest are files, then parent directory of 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:
description: description:
@ -65,9 +65,9 @@ options:
version_added: "1.5" version_added: "1.5"
remote_src: remote_src:
description: description:
- If C(no), it will search for src at originating/master machine. - If C(no), it will search for I(src) at originating/master machine.
- If C(yes), it will go to the remote/target machine for the src. Default is False. - If C(yes) it will go to the remote/target machine for the I(src). Default is C(no).
- Currently C(remote_src) does not support recursive copying. - Currently I(remote_src) does not support recursive copying.
type: bool type: bool
default: 'no' default: 'no'
version_added: "2.0" version_added: "2.0"
@ -91,8 +91,8 @@ author:
- "Ansible Core Team" - "Ansible Core Team"
- "Michael DeHaan" - "Michael DeHaan"
notes: notes:
- The "copy" module recursively copy facility does not scale to lots (>hundreds) of files. - The M(copy) module recursively copy facility does not scale to lots (>hundreds) of files.
For alternative, see synchronize module, which is a wrapper around rsync. For alternative, see M(synchronize) module, which is a wrapper around C(rsync).
- For Windows targets, use the M(win_copy) module instead. - For Windows targets, use the M(win_copy) module instead.
''' '''

Loading…
Cancel
Save