win_regedit
Manage Windows registry keys and typed values
Collection: ansible.windows
Full Name: parallax.windows.win_regedit
Aliases: ansible.windows.win_regedit, win_regedit
Synopsis
Manage Windows registry keys and typed values
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| path | string | yes | Registry path starting HKCC, HKCR, HKCU, HKLM, or HKU | |
| name | string | Value name; omitted or empty selects the default value | ||
| data | any | Typed registry value data | ||
| type | string | string | Value type: string, expandstring, multistring, binary, none, dword, or qword | |
| state | string | present | Desired state: present or absent | |
| delete_key | bool | true | Delete entire key for absent state without a value name | |
| hive | string | Optional hive file to mount temporarily at HKLM:\ANSIBLE |
Example
yaml
- name: Inspect application registry configuration
ansible.windows.win_regedit:
path: 'HKCU:\Software\Example'