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', 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.