Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dagwieers/6e6f200074f17dea2457348a5e8b1d93 to your computer and use it in GitHub Desktop.
Save dagwieers/6e6f200074f17dea2457348a5e8b1d93 to your computer and use it in GitHub Desktop.
Example win_regedit
- hosts: computer61
gather_facts: no
tasks:
- win_regedit:
key: HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
value: SMB1
data: 0xffffffff
datatype: dword
state: present
- win_regedit:
key: HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
value: SMB1
data: 0xffffffff
datatype: dword
state: present
- win_regedit:
key: HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
value: SMB1
data: 0x0
datatype: dword
state: present
[dag@moria crombeen]$ ansible-playbook test148.yml
PLAY [computer61] ************************************************************************************************************************
TASK [win_regedit] ***********************************************************************************************************************
changed: [computer61]
TASK [win_regedit] ***********************************************************************************************************************
ok: [computer61]
TASK [win_regedit] ***********************************************************************************************************************
changed: [computer61]
PLAY RECAP *******************************************************************************************************************************
computer61 : ok=3 changed=2 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment