2016-07-29 23:12:41 -07:00
|
|
|
---
|
2016-09-11 23:29:24 -07:00
|
|
|
- hosts: default:packer-test
|
2016-07-29 23:12:41 -07:00
|
|
|
gather_facts: no
|
|
|
|
tasks:
|
|
|
|
- raw: touch /root/ansible-raw-test
|
|
|
|
- raw: date
|
|
|
|
- command: echo "the command module"
|
|
|
|
- command: mkdir /tmp/remote-dir
|
2016-08-28 22:22:48 -07:00
|
|
|
args:
|
2016-07-29 23:12:41 -07:00
|
|
|
creates: /tmp/remote-dir
|
|
|
|
- copy: src=dir/file.txt dest=/tmp/remote-dir/file.txt
|
|
|
|
- fetch: src=/tmp/remote-dir/file.txt dest=fetched-dir validate=yes fail_on_missing=yes
|
|
|
|
- copy: src=largish-file.txt dest=/tmp/largish-file.txt
|