1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/win_updates/tasks/main.yml

27 lines
503 B
YAML
Raw Normal View History

---
- name: ensure test folder exists
win_file:
path: '{{win_updates_dir}}'
state: directory
- name: ensure WUA service is running
win_service:
name: wuauserv
state: started
start_mode: manual
- block:
- include_tasks: tests.yml
always:
- name: ensure test folder is deleted
win_file:
path: '{{win_updates_dir}}'
state: absent
- name: ensure WUA service is running
win_service:
name: wuauserv
state: started
start_mode: manual