network_interface icon indicating copy to clipboard operation
network_interface copied to clipboard

FAILED! subelements lookup expects a dictionary, got 'network_bridge_interfaces'

Open thom-nic opened this issue 9 years ago • 1 comments

TASK [bennojoy.network_interface : Create the network configuration file for port on the bridge devices] ***
fatal: [vsdemo6]: FAILED! => {"failed": true, "msg": "subelements lookup expects a dictionary, got 'network_bridge_interfaces'"}

Using Ansible v2.2.0. This role has worked fine in the past so I suspect this is a breaking change in a recent ansible version.

thom-nic avatar Dec 07 '16 16:12 thom-nic

Referring to subelements documentation it appears the correct form should be:

with_subelements:
  - "{{ network_bridge_interfaces }}"
  - ports

thom-nic avatar Dec 07 '16 16:12 thom-nic