What is the easiest way to create an empty file using Ansible? I know I can save an empty file into the files directory and then copy it to the remote host, but I f
files
Another option, using the command module:
- name: Create file command: touch /path/to/file args: creates: /path/to/file
The 'creates' argument ensures that this action is not performed if the file exists.