Created
July 4, 2017 20:27
-
-
Save dagwieers/6e6f200074f17dea2457348a5e8b1d93 to your computer and use it in GitHub Desktop.
Example win_regedit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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