You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
581 B
YAML
29 lines
581 B
YAML
6 years ago
|
# Verify basic operation of the synchronize module.
|
||
|
|
||
|
- name: integration/action/synchronize.yml
|
||
|
hosts: test-targets
|
||
|
any_errors_fatal: true
|
||
|
tasks:
|
||
|
- file:
|
||
|
path: /tmp/sync-test
|
||
|
state: directory
|
||
|
connection: local
|
||
|
|
||
|
- copy:
|
||
|
dest: /tmp/sync-test/item
|
||
|
content: "item!"
|
||
|
connection: local
|
||
|
|
||
|
- synchronize:
|
||
|
dest: /tmp/sync-test
|
||
|
src: /tmp/sync-test
|
||
|
|
||
|
- slurp:
|
||
|
src: /tmp/sync-test/item
|
||
|
register: out
|
||
|
|
||
|
- set_fact: outout="{{out.content|b64decode}}"
|
||
|
|
||
|
- assert:
|
||
|
that: outout == "item!"
|