SyntaxFix
Write A Post
Hire A Developer
Questions
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.