summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorSam Doran <sdoran@ansible.com>2016-10-12 15:41:08 -0400
committerSam Doran <sdoran@ansible.com>2016-11-14 14:12:43 -0500
commit07d1c1c3f7eb65eb42b8266a2bed80d435148f73 (patch)
treec988dd70b3f47a0997dca14ad43c12d3e2b96d90 /files
parent501403a164a2b6b42518d8f670d539ce680b9dc3 (diff)
downloadansible-modules-core-07d1c1c3f7eb65eb42b8266a2bed80d435148f73.tar.gz
Change examples syntax on fetch module
Diffstat (limited to 'files')
-rw-r--r--files/fetch.py21
1 files changed, 16 insertions, 5 deletions
diff --git a/files/fetch.py b/files/fetch.py
index ad349642..9b3f0782 100644
--- a/files/fetch.py
+++ b/files/fetch.py
@@ -65,7 +65,7 @@ options:
will use the basename of the source file, similar to the copy module.
Obviously this is only handy if the filenames are unique.
requirements: []
-author:
+author:
- "Ansible Core Team"
- "Michael DeHaan"
notes:
@@ -79,14 +79,25 @@ notes:
EXAMPLES = '''
# Store file into /tmp/fetched/host.example.com/tmp/somefile
-- fetch: src=/tmp/somefile dest=/tmp/fetched
+- fetch:
+ src: /tmp/somefile
+ dest: /tmp/fetched
# Specifying a path directly
-- fetch: src=/tmp/somefile dest=/tmp/prefix-{{ inventory_hostname }} flat=yes
+- fetch:
+ src: /tmp/somefile
+ dest: /tmp/prefix-{{ inventory_hostname }}
+ flat: yes
# Specifying a destination path
-- fetch: src=/tmp/uniquefile dest=/tmp/special/ flat=yes
+- fetch:
+ src: /tmp/uniquefile
+ dest: /tmp/special/
+ flat: yes
# Storing in a path relative to the playbook
-- fetch: src=/tmp/uniquefile dest=special/prefix-{{ inventory_hostname }} flat=yes
+- fetch:
+ src: /tmp/uniquefile
+ dest: special/prefix-{{ inventory_hostname }}
+ flat: yes
'''