|
|
@ -34,9 +34,22 @@ options:
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
choices: [ "yes", "no" ]
|
|
|
|
choices: [ "yes", "no" ]
|
|
|
|
default: "no"
|
|
|
|
default: "no"
|
|
|
|
|
|
|
|
flat:
|
|
|
|
|
|
|
|
version_added: "1.2"
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
Allows you to override the default behavior of prepending hostname/path/to/file to
|
|
|
|
|
|
|
|
the destination. If dest ends with '/', it will use the basename of the source
|
|
|
|
|
|
|
|
file, similar to the copy module. Obvioiusly this is only handy if the filenames
|
|
|
|
|
|
|
|
are unqiue.
|
|
|
|
examples:
|
|
|
|
examples:
|
|
|
|
- code: "fetch: src=/var/log/messages dest=/home/logtree"
|
|
|
|
- code: "fetch: src=/var/log/messages dest=/home/logtree"
|
|
|
|
description: "Example from Ansible Playbooks"
|
|
|
|
description: "Example from Ansible Playbooks"
|
|
|
|
|
|
|
|
- code: "fetch: src=/tmp/somefile dest="/tmp/beefcake-{{ ansible_hostname }}" flat=yes"
|
|
|
|
|
|
|
|
description: "Copies a file from remote machine and stores it at the absolute path /tmp/beefcake-{{ ansible_hostname }}"
|
|
|
|
|
|
|
|
- code: "fetch: src=/tmp/uniquefile dest="/tmp/special/" flat=yes"
|
|
|
|
|
|
|
|
description: "Copies a file from remote machine and stores it at the absolute path /tmp/special"
|
|
|
|
|
|
|
|
- code: "fetch: src=/tmp/uniquefile dest="special/" flat=yes"
|
|
|
|
|
|
|
|
description: "Copies a file from remote machine and stores it in special/uniquefile relative to the playbook"
|
|
|
|
requirements: []
|
|
|
|
requirements: []
|
|
|
|
author: Michael DeHaan
|
|
|
|
author: Michael DeHaan
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|