mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
adding the ability to manage binary registry data
This commit is contained in:
parent
5464b71561
commit
c2ca0a9e93
2 changed files with 49 additions and 1 deletions
|
@ -43,7 +43,7 @@ options:
|
|||
aliases: []
|
||||
data:
|
||||
description:
|
||||
- Registry Value Data
|
||||
- Registry Value Data. Binary data should be expressed as comma separated hex values. An easy way to generate this is to run regedit.exe and use the 'Export' option to save the registry values to a file. In the file binary values will look something like this: hex:be,ef,be,ef. The 'hex:' prefix is optional.
|
||||
required: false
|
||||
default: null
|
||||
aliases: []
|
||||
|
@ -94,6 +94,15 @@ EXAMPLES = '''
|
|||
data: 1337
|
||||
datatype: dword
|
||||
|
||||
# Creates Registry Key called MyCompany,
|
||||
# a value within MyCompany Key called "hello", and
|
||||
# binary data for the value "hello" as type "binary".
|
||||
win_regedit:
|
||||
key: HKCU:\Software\MyCompany
|
||||
value: hello
|
||||
data: hex:be,ef,be,ef,be,ef,be,ef,be,ef
|
||||
datatype: binary
|
||||
|
||||
# Delete Registry Key MyCompany
|
||||
# NOTE: Not specifying a value will delete the root key which means
|
||||
# all values will be deleted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue