Customoptions networks

Hi,

I have provisioned a VMware system from a catalog and need to capture the network vlan name with a customoption.

This is an extract from the ansible tower job variables passed across relating to networks

Morpheus:
networkInterfaces:
- id: ‘31’
network:
id: 31
group: null
subnet: null
dhcpServer: true
name: TWX_BRIDGED_VL4567_ND_BD

I have created variable translation in my ansible playbook:

input_network: “{{ morpheus[‘networkInterfaces’][‘network’][‘name’] }}”
]
However when it runs it cannot find network part.

If I make the input to networkInterfaces it can, I cannot figure out the syntax for why it’s not pulling network and then name. Any ideas?

Cheers
Jon

networkInterfaces is an array. You will probably need to do

“{{ morpheus[‘networkInterfaces’][0][‘network’][‘name’] }}”