mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
72e7927dd5
* win_scheduled_task: Added frequency: once and check_mode support This patch includes: - Renamed `execute:` parameter to `executable:` - Renamed `argument:` parameter to `arguments:` - Implemented `frequency: once` support - Implemented check_mode support - Fix idempotency issue related to empty description - Added integration tests * Improve the integration test structure I think this is a great way to test normal mode and check-mode from the same playbook. * Small fixes after review
26 lines
654 B
YAML
26 lines
654 B
YAML
- name: Remove potentially leftover scheduled task
|
|
win_scheduled_task: &wst_absent
|
|
name: Test
|
|
state: absent
|
|
|
|
- name: Add scheduled task
|
|
win_scheduled_task: &wst_present
|
|
name: Test
|
|
executable: dir.exe
|
|
arguments: C:\Windows\Temp\
|
|
frequency: once
|
|
time: 5pm
|
|
user: SYSTEM
|
|
register: add_scheduled_task
|
|
|
|
- name: Add scheduled task (again)
|
|
win_scheduled_task: *wst_present
|
|
register: add_scheduled_task_again
|
|
|
|
- name: Remove scheduled task
|
|
win_scheduled_task: *wst_absent
|
|
register: remove_scheduled_task
|
|
|
|
- name: Remove scheduled task (again)
|
|
win_scheduled_task: *wst_absent
|
|
register: remove_scheduled_task_again
|