Using the python module https://github.com/jialehuo/ansible-dellemc-unity/blob/master/library/dellemc_unity.py , below have designed the playbook but am facing Request body errors.
PLAYBOOK:
Using the python module https://github.com/jialehuo/ansible-dellemc-unity/blob/master/library/dellemc_unity.py , below have designed the playbook but am facing Request body errors.
PLAYBOOK:
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
HI Team
I am having a tough time on changing the mgmt ip address via URI module and even properly having login info, logout and updating headers.
Still I get “HTTP Error 401”
The URL which I update is via POST
“https://<unity_ip>/api/instances/mgmtInterfaces/mgmt_ipv4/action/modify”
request your thoughts
thanks
regds
Vj