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
Changed if file not exists. Create empty file.
- name: create fake 'nologin' shell file: path: /etc/nologin state: touch register: p changed_when: p.diff.before.state == "absent"