2016-07-30 02:12:41 -04:00
|
|
|
---
|
2016-09-12 02:29:24 -04:00
|
|
|
- hosts: default:packer-test
|
2016-07-30 02:12:41 -04: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-29 01:22:48 -04:00
|
|
|
args:
|
2016-07-30 02:12:41 -04: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
|