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.
mitogen/tests/ansible/bench/loop-100-copies.yml

26 lines
569 B
YAML

- hosts: all
any_errors_fatal: true
tasks:
- name: Create file tree
connection: local
shell: >
mkdir -p /tmp/filetree.in;
for i in `seq -f /tmp/filetree.in/%g 1 100`; do echo $RANDOM > $i; done;
- name: Delete remote file tree
file: path=/tmp/filetree.out state=absent
when: 0
- file:
state: directory
path: /tmp/filetree.out
- name: Trigger nasty process pileup
copy:
src: "{{item.src}}"
dest: "/tmp/filetree.out/{{item.path}}"
with_filetree: /tmp/filetree.in
when: item.state == 'file'