Hi,
is there a way to add more than one device to a container from a variable?
I'd like to have something like this defined:
lxc_containers:
- name: c1
devices:
- name: eth0
type: nic
...
- name: data
type: disk
...
and then have a task like:
- name: create containers
lxd_container:
name: "{{item.name}}"
state: started
...
devices: "{{item.devices}}"
...
with_items: "{{lxd_containers}""
right now this seems impossible as you have to spell out in the task each
device. Am I misunderstanding the module? is there a way around it?
thanks,
Spike
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAPE6YbT6%2BWEw0kqo4WVdzrGZ1%2Bz%3DrEbFMAHf%2BPJ09kjavP3Vig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.