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.
77 lines
1.5 KiB
YAML
77 lines
1.5 KiB
YAML
|
|
- name: bench/file_transfer.yml
|
|
hosts: test-targets
|
|
tasks:
|
|
|
|
- name: Make 32MiB file
|
|
delegate_to: localhost
|
|
shell: openssl rand 33554432 > /tmp/bigfile.in
|
|
|
|
- name: Make 320MiB file
|
|
delegate_to: localhost
|
|
shell: >
|
|
cat
|
|
/tmp/bigfile.in
|
|
/tmp/bigfile.in
|
|
/tmp/bigfile.in
|
|
/tmp/bigfile.in
|
|
/tmp/bigfile.in
|
|
/tmp/bigfile.in
|
|
/tmp/bigfile.in
|
|
/tmp/bigfile.in
|
|
/tmp/bigfile.in
|
|
/tmp/bigfile.in
|
|
> /tmp/bigbigfile.in
|
|
|
|
- name: Delete SSH file is present.
|
|
file:
|
|
path: "{{item}}"
|
|
state: absent
|
|
become: true
|
|
with_items:
|
|
- /tmp/bigfile.out
|
|
- /tmp/bigbigfile.out
|
|
|
|
- name: Copy 32MiB file via SSH
|
|
copy:
|
|
src: /tmp/bigfile.in
|
|
dest: /tmp/bigfile.out
|
|
|
|
- name: Copy 320MiB file via SSH
|
|
copy:
|
|
src: /tmp/bigbigfile.in
|
|
dest: /tmp/bigbigfile.out
|
|
|
|
- name: Delete localhost sudo file if present.
|
|
file:
|
|
path: "{{item}}"
|
|
state: absent
|
|
delegate_to: localhost
|
|
become: true
|
|
with_items:
|
|
- /tmp/bigfile.out
|
|
- /tmp/bigbigfile.out
|
|
tags:
|
|
- requires_local_sudo
|
|
|
|
- name: Copy 32MiB file via localhost sudo
|
|
delegate_to: localhost
|
|
become: true
|
|
copy:
|
|
src: /tmp/bigfile.in
|
|
dest: /tmp/bigfile.out
|
|
tags:
|
|
- requires_local_sudo
|
|
|
|
- name: Copy 320MiB file via localhost sudo
|
|
delegate_to: localhost
|
|
become: true
|
|
copy:
|
|
src: /tmp/bigbigfile.in
|
|
dest: /tmp/bigbigfile.out
|
|
tags:
|
|
- requires_local_sudo
|
|
|
|
tags:
|
|
- resource_intensive
|