> [...]
> - name: Updates
> dellemc_unity:
> unity_hostname: "165.114.74.40"
> unity_username: "{{ user }}"
> unity_password: "{{ password }}"
> unity_updates:
> - { resource_type: storageResource, fields: 'name:{{ lun_name }},
> lunParameters:{pool: {id: "{{ pool_id }}"}, size: "{{ lun_size }}",
> isThinEnabled:"true", isDataReductionEnabled:"false"}', action: 'createLun'
> }
> [...]
> * "en-US": "Request body is not correct. There may be
> duplicate parameters, wrong parameter name. Please refer to API
> documentation page and ensure the body is correct. (Error Code:0x7d13035)"*
The parameter "unity_updates" seems to be wrong. Make sure the parenthesis,
quotation and other items are correct. Try to create the list (if
"unity_updates" is really a list) of dictionaries first and take a look at
the debug whether this is what you want. For example, or rather as a
demonstration of the proposal (I have no idea of the module's details)
- set_fact:
unity_updates: "{{ unity_updates|default([]) +
[{resource_type: storageResource,
fields: 'name:{{ lun_name }},
lunParameters: {pool: {id: "{{ pool_id }}"}},
size: "{{ lun_size }}",
isThinEnabled:"true",
isDataReductionEnabled:"false"}',
action: 'createLun'}] }}"
- debug:
var: unity_updates
Cheers,
-vlado