diff --git a/roles/install_babeld/templates/babeld.conf.j2 b/roles/install_babeld/templates/babeld.conf.j2 index 4a471dc..cd919fd 100644 --- a/roles/install_babeld/templates/babeld.conf.j2 +++ b/roles/install_babeld/templates/babeld.conf.j2 @@ -5,13 +5,18 @@ ipv6-subtrees true # You must provide at least one interface for babeld to operate on. -{% if 'ffrl_uplink' in group_names %} +{% if 'fastd' in group_names %} +{% for peer in groups['ffrl_uplink'] %} +interface bb{{ hostvars[peer]['wireguard_bb_name'] }} +{% endfor %} +{% endif %} +{% if 'mullvad_uplink' in group_names %} {% for peer in groups['fastd'] %} interface bb{{ hostvars[peer]['wireguard_bb_name'] }} {% endfor %} {% endif %} -{% if 'fastd' in group_names %} -{% for peer in groups['ffrl_uplink'] %} +{% if 'ffrl_uplink' in group_names %} +{% for peer in groups['fastd'] %} interface bb{{ hostvars[peer]['wireguard_bb_name'] }} {% endfor %} {% endif %}