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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/a37596a2-0715-4edb-bffe-3dcf94195142%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.