I am running the script module in a role on a windows machine.
I am attempting to use the "args: creates:" parameter. The script runs but the file that 'creates' is supposed to generate never gets created. When I run the playbook again the script runs a second time.
I've tried changing the file name and directory, I've tried using the environment variable to designate HOME as the root directory but the file never gets generated.
---
- name: run script
script: ./files/script.ps1 PARAMETERS
args:
creates: script_has_been_run.txt