# creating a file w/ content # https://phoenixnap.com/kb/ansible-create-file --- - name: "05 - Playing with Ansible - creating a file w/ content" # hosts: dev hosts: localhost connection: local tasks: - name: Creating a file with content copy: dest: "~/tmp/temp_files/ansible_created_file-02.txt" content: | line 01 line 02