From 69dc1b137a9c2a7f5984e8f2d7a838bb3512eed5 Mon Sep 17 00:00:00 2001 From: lhahn Date: Fri, 16 Oct 2026 13:57:49 +0200 Subject: [PATCH] Only write floating ip config when floating_ips are set The task also ran with an empty list and restarted/enabled ifupdown's networking service; Raspberry Pi OS (NetworkManager) has no /etc/network/interfaces.d at all. Co-Authored-By: Claude Opus 5.5 --- tasks/networking.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/networking.yml b/tasks/networking.yml index 62c4e03..75438bb 100644 --- a/tasks/networking.yml +++ b/tasks/networking.yml @@ -7,3 +7,5 @@ group: root mode: 0644 notify: restart networking service + # only ifupdown hosts with floating ips need this (not e.g. Raspberry Pi OS with NetworkManager) + when: floating_ips | length > 0