- 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)}}
