From fb0ce938dc81bcb53a2fbadfe6c0074d4b05c7fd Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Thu, 25 Jan 2018 19:47:56 +0100 Subject: [PATCH] babel mullvad_uplink fix --- roles/install_babeld/templates/babeld.conf.j2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 %}