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.
24 lines
508 B
YAML
24 lines
508 B
YAML
---
|
|
|
|
- shell: dd if=/dev/urandom of=/tmp/{{file_name}} bs=1024 count={{file_size}}
|
|
args:
|
|
creates: /tmp/{{file_name}}
|
|
connection: local
|
|
|
|
- copy:
|
|
dest: /tmp/{{file_name}}.out
|
|
src: /tmp/{{file_name}}
|
|
|
|
- stat: path=/tmp/{{file_name}}
|
|
register: original
|
|
connection: local
|
|
|
|
- stat: path=/tmp/{{file_name}}
|
|
register: copied
|
|
|
|
- assert:
|
|
that:
|
|
- original.stat.checksum == copied.stat.checksum
|
|
#- original.stat.atime == copied.stat.atime
|
|
- original.stat.mtime == copied.stat.mtime
|