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://x.x.x.x:8530 <http://172.30.1.21:8530>', item.datatype: 'string'}
but I am getting this error:
"fatal: [172.x.x.x]: 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/64b4eb75-6089-4d14-a07d-7c59ed300c12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.