19 lines
498 B
YAML
19 lines
498 B
YAML
|
---
|
||
|
- 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
|