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: Miscellaneous Security Settings
  win_regedit:
      key: 
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\{{item.subkey}}
      value: "{{item.value}}"
      data: "{{item.data}}"
      datatype: "{{item.datatype}}"
  with_items:
    - subkey: system
      value : dontdisplaylastusername
      data: 1
      datatype: dword
    - subkyey: system
      vlaue: legalnoticecaption
      data: Warning
      datatype: string


On Wednesday, March 2, 2016 at 9:59:21 AM UTC-8, a akin wrote:

> 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 <http://172.30.1.21:8530>', datatype: 'string'}
> was throwing an error.
>
> Thanks again.
> a.
>
>
>

-- 
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/4188a54a-ed28-4b69-800a-6d3f7a8e3884%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to