michaelrigart / ansible-role-interfaces

An ansible role for configuring different network interfaces
GNU General Public License v3.0
83 stars 61 forks source link

templates/bridge_Debian.j2 generates output with missing newline. #114

Closed neverreadsemail closed 2 years ago

neverreadsemail commented 2 years ago

In particular when I have an interface

this snippet of the templates/bridge_Debian.j2 template: {% if item.ports is defined %} bridge_ports {{ item.ports|join(' ') }}{% if item.ports | default([], true) | length == 0 %}none{% endif %} {% endif %} {% if item.stp is defined %} bridge_stp {{ item.stp }} {% endif %}

generates a file in /etc/network/interfaces.d/ifcfg-external-br0 with the following line: bridge_ports eno1bridge_stp on

note the lack of newline between the bridge_ports and bridge_stp entries.

neverreadsemail commented 2 years ago

Sorry, I should have looked before posting. it appears that this is a dup of #84