Hi,
I am trying to use Ansible to change Windows registry using win_regedit. I have this .yml:
`
- name: Change app compatibility
hosts: windows
gather_facts: false
tasks: - name: do regedit
win_regedit:
key: ‘HKCU:\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags’
value: ‘{2b9034f3-b661-4d36-a5ef-60ab5a711ace}’
data: 00000004
datatype: dword
`
But when I run it I get:
`
[root@centos65 ansible_test]# ansible-playbook doregedit.yml
ERROR: win_regedit is not a legal parameter in an Ansible task or handler
`
What is causing this error (and how to fix it)?
Do I have to do something additional to install the win_regedit module because it’s an “extra”?
Thanks,
Jim