Skip to content

Instantly share code, notes, and snippets.

@lanky
Created October 7, 2016 15:58
Show Gist options
  • Save lanky/95586a287adac1ed003b57d1cf161651 to your computer and use it in GitHub Desktop.
Save lanky/95586a287adac1ed003b57d1cf161651 to your computer and use it in GitHub Desktop.
---
# vim: set ft=ansible:
- name: fetchstuff
hosts: localhost
gather_facts: no
tasks:
- name: fetch it
fetch:
src: "/tmp/{{ item.name}}"
dest: "/tmp/dest/{{ item.name }}"
flat: yes
with_items:
- name: testfile
- name: old clunky syntax
fetch: flat=yes dest="/tmp/{{ item.name }}.2" src="/tmp/{{ item.name}}"
with_items:
- name: testfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment