Closed lieutdan13 closed 8 years ago
@lieutdan13 thank you for your ticket. Your are absolutely right.
I always used the manual method, which is supported with the addresses
array.
It would be cool to support the other option as well. But I don't like the id approach... It feels like we added more than necessary. Ideally we would join all elements into one file. I guess this requires some variable hacking with Ansible.
implemented.
According to the Network Configuration for Debian documentation, you can have multiple IPs assigned to the same interface name without using virtual or aliased interface names. The file name for devices is as follows
device-{{ item.device }}-{{ item.family | default('inet') }}
, which is not unique if you use this method of multiple IPs.For example:
You could have an optional unique identifier to append to the config filenames. i.e.
then
device-{{ item.device }}-{{ item.family | default('inet') }}{{ '-' + item.id if item.id | default('') else '' }}
for the file name.