That looks like it should work, {{item.devices}} should be expanded
before the module reads it, and that is already a list,
Though, looking at the code definition of the module, it seems wrong
and it takes a dictionary, not a list. Seem to need a 'dictionary of
device type with a list of devices'. Looks like the following should
work:
lxc_containers:
- name: c1
devices:
eth0:
name: eth0
type: nic
data:
path: /data
type: disk
-------
Brian Coca