I am trying to write a file to my local machine with a dynamic inventory. I
am running the following script in Ansible Tower:
---
- hosts: all
tasks:
- name: Copy the file
connection: local
run_once: true
copy: content="Hello, World!" dest=/tmp/hello.txt
This works when I run it
I am using both the copy and the template modules to upload files to a
target system. The source files use DOS new lines. The target is Linux. It
template module seems to convert the end of line characters to UNIX end of
lines. The copy doesn't support this. Can I suggest an option on both of