- 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
[root@centos65 ansible_test]# ansible-playbook doregedit.ymlERROR: win_regedit is not a legal parameter in an Ansible task or handler