diff --git a/lib/ansible/modules/files/fetch.py b/lib/ansible/modules/files/fetch.py index 4ca191b8121..f78a6c3c0b3 100644 --- a/lib/ansible/modules/files/fetch.py +++ b/lib/ansible/modules/files/fetch.py @@ -82,11 +82,11 @@ EXAMPLES = ''' - fetch: src=/tmp/somefile dest=/tmp/fetched # Specifying a path directly -- fetch: src=/tmp/somefile dest=/tmp/prefix-{{ ansible_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 # Storing in a path relative to the playbook -- fetch: src=/tmp/uniquefile dest=special/prefix-{{ ansible_hostname }} flat=yes +- fetch: src=/tmp/uniquefile dest=special/prefix-{{ inventory_hostname }} flat=yes '''