In the latest release it isn't possible to do with the current
win_scheduled_task module. For 2.5 the module was drastically rewritten and
supports this scenario, you can find the latest docs for it here
Using your example this is how it could possibly be done with the new
format in 2.5
- name: create scheduled task to run every minute
name: task name here
- path: cmd.exe
arguments: /c echo hello world
- type: registration
- interval: PT1M
duration: '' # an empty value should mean it last infinitely
What this means is that a task that run "cmd.exe /c echo hello world" will
create a registration trigger and run that every minute indefinitely. The
registration trigger just means start the task on registration.
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.