mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
743ff4897a
* win_regedit: added function to load a dat file for editing * try to make the tests more resiliant * more stability changes
18 lines
498 B
YAML
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
|