Allow win_scheduled_task to support adding and removing task paths (#24025)

* allows win_scheduled_task to support adding and removing task paths

* fix line length for documentation

* added integration tests for path creation and removal

* removing ability to remove TaskPath if a task isn't removed.  also removed superfluous line of code in Invoke-TaskPathCheck function
This commit is contained in:
Andrew Saraceni 2017-06-14 03:02:36 -04:00 committed by jhawkesworth
commit 91e995d691
3 changed files with 161 additions and 5 deletions

View file

@ -81,7 +81,8 @@ options:
- Days of the week to run a weekly task, not idempotent
path:
description:
- Task folder in which this task will be stored
- Task folder in which this task will be stored - creates a non-existent path when C(state) is C(present),
and removes an empty path when C(state) is C(absent)
default: '\'
'''
@ -92,7 +93,7 @@ EXAMPLES = r'''
description: open command prompt
executable: cmd
arguments: -opt1 -opt2
path: example
path: \example
time: 9am
frequency: daily
state: present