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}}"
datatype: "{{item.datatype}}"
with_items:
- {subkey: 'WindowsUpdate', value: 'WUServer', data:
'http://172.30.1.21:8530', item.datatype: 'string'}
but I am getting this error:
"fatal: [172.16.2.136]: FAILED! => {"failed": true, "msg": "'dict
object' has no attribute 'datatype'"}"
No error if I comment out " datatype: "{{item.datatype}}"" but the values
are being created as default datatype (string).
I am on Ansible 2.0.1.0.
Any help appreciated.
--
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/dfb5c17d-ffdc-4f22-bfe7-883dc435e75a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.