Created
October 7, 2016 15:58
-
-
Save lanky/95586a287adac1ed003b57d1cf161651 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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