# create multiple empty files # https://phoenixnap.com/kb/ansible-create-file --- - name: "06 - Playing with Ansible - create multiple empty files" hosts: all # hosts: localhost # connection: local tasks: - name: Create multiple files file: path: "~/{{ item }}" state: touch with_items: - ansible_created_file-03.txt - ansible_created_file-04.txt - ansible_created_file-05.txt - ansible_created_file-06.txt ...