[ansible-project] Re: Ansible win_regedit error: {"failed": true, "msg": "'dict object' has no attribute 'datatype'"}"

2016-11-07 Thread Todd Schaal
So what can be done about the "found a duplicate dict key" message? Surely modifying multiple values under one key is a legitimate use case. How do you do it? I tried using 2 separate task and also a loop like below, but I always get the same message. What am I doing wrong? - name: Misce

[ansible-project] Re: Ansible win_regedit error: {"failed": true, "msg": "'dict object' has no attribute 'datatype'"}"

2016-03-02 Thread a akin
Hi J, Thanks, your syntax for listing the items under the "with_items' section did the trick. I wonder why listing as: {location: 'WindowsUpdate', value: 'WUServer', data: ' http://x.x.x.x:8530 ', datatype: 'string'} was throwing an error. Thanks again. a. -- You

[ansible-project] Re: Ansible win_regedit error: {"failed": true, "msg": "'dict object' has no attribute 'datatype'"}"

2016-03-02 Thread 'J Hawkesworth' via Ansible Project
I think you are on the right track. I suspect you don't want 'item.datatype' in your with_items list - you only need item. when you are dereferencing the variable. Not tested, but I think maybe something like this is what you are after. I changed subkey to location as it seems subkey has a spe

[ansible-project] Re: Ansible win_regedit error: {"failed": true, "msg": "'dict object' has no attribute 'datatype'"}"

2016-03-02 Thread a akin
Ok, got some help from the docs and doing this now, better but probably still not the best: - name: Insert Updates needed for WSUS win_regedit: key: HKLM:\SOFTWARE\Policies\ Microsoft\Windows\{{item.subkey}} value: "{{item.value}}" data: "{{item.data}}" d