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_regedit/tasks/cleanup.yml

19 lines
498 B
YAML
Raw Normal View History

---
- name: load HKLM:\ANSIBLE with test hive
win_command: reg.exe load HKLM\ANSIBLE C:\Users\Default\NTUSER.dat
failed_when: false
- name: make sure testing keys are removed before test
win_regedit:
path: '{{item}}'
delete_key: yes
state: absent
with_items:
- '{{test_win_regedit_local_key}}'
- '{{test_win_regedit_classes_key}}'
- '{{test_win_regedit_hive_key}}'
- name: ensure HKLM:\ANSIBLE is unloaded
win_command: reg.exe unload HKLM\ANSIBLE
failed_when: false