ansible/test/integration/targets/win_regedit/tasks/cleanup.yml
Jordan Borean 743ff4897a win_regedit: added function to load a dat file for editing (#31289)
* win_regedit: added function to load a dat file for editing

* try to make the tests more resiliant

* more stability changes
2017-10-18 06:30:33 +10:00

18 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