Team,
Is there any option to run the scheduled task every minute. in the documentation i see the frequency is either once or daily or weekly
I am referring to “Advance Settings” from Trigger of Windows Scheduled task
Thanks.
Team,
Is there any option to run the scheduled task every minute. in the documentation i see the frequency is either once or daily or weekly
I am referring to “Advance Settings” from Trigger of Windows Scheduled task
Thanks.
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 http://docs.ansible.com/ansible/devel/modules/win_scheduled_task_module.html.
Using your example this is how it could possibly be done with the new format in 2.5
`
`
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.
Thanks
Jordan
Thanks Jordan,
We are still evaluating on moving to 2.5. Do we have any workaround in 2.0
Thanks.
Not in any easy idempotent way unfortunately, you have some options, you could;
Thanks
Jordan
Thanks Jordan i will go ahead with your suggestion