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-20-templates.yml

17 lines
379 B
YAML

- name: bench/loop-20-templates.yml
hosts: all
tasks:
- name: Create loop templates dir
file:
dest: /tmp/templates
state: "{{item}}"
with_items: ["absent", "directory"]
- name: Copy loop files
copy:
dest: /tmp/templates/{{item}}
mode: 0755
content:
Hello from {{item}}
with_sequence: start=1 end={{end|default(20)}}