From c8358d845434328401d6b64207bb2b34a16be8c4 Mon Sep 17 00:00:00 2001 From: Marcus Weiner Date: Mon, 4 Dec 2023 22:54:22 +0100 Subject: [PATCH] Fix variable being list with trailing newline --- group_vars/all.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/group_vars/all.yaml b/group_vars/all.yaml index aefbf0a..b4c7908 100644 --- a/group_vars/all.yaml +++ b/group_vars/all.yaml @@ -11,9 +11,10 @@ fastd_peer_public: "8a486f7b27324cd41761636e40b3bb6e9c1b183588cc997af93c593fb15d client_ipv4_container: "10.0.0.0/8" client_bridge_interface: "{{ interfaces | selectattr('name', 'equalto', 'br0') | first }}" -gateway_ipv4_address: > +gateway_ipv4_address: >- {{ client_bridge_interface.ip_addresses | map(attribute='address') | ansible.utils.ipv4 | - ansible.utils.ipaddr(client_ipv4_container) + ansible.utils.ipaddr(client_ipv4_container) | + first }}