mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Change examples syntax on fetch module
This commit is contained in:
@@ -79,14 +79,25 @@ notes:
|
|||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Store file into /tmp/fetched/host.example.com/tmp/somefile
|
# 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
|
# 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
|
# 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
|
# 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
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user