PARALLAX

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

NameTypeRequiredDefaultDescription
pathstringyesRegistry path starting HKCC, HKCR, HKCU, HKLM, or HKU
namestringValue name; omitted or empty selects the default value
dataanyTyped registry value data
typestringstringValue type: string, expandstring, multistring, binary, none, dword, or qword
statestringpresentDesired state: present or absent
delete_keybooltrueDelete entire key for absent state without a value name
hivestringOptional hive file to mount temporarily at HKLM:\ANSIBLE

Example

yaml
- name: Inspect application registry configuration
  ansible.windows.win_regedit:
    path: 'HKCU:\Software\Example'
Search
    ↑ ↓ move↵ openesc close