Files
cloud-basis/tasks/networking.yml
T
lhahnandClaude Opus 5.5 69dc1b137a 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 <noreply@anthropic.com>
2026-10-16 13:57:49 +02:00

12 lines
377 B
YAML

---
- name: setup floating ips
template:
src: "./etc/network/interfaces.d/60-floating-ip.cfg.j2"
dest: "/etc/network/interfaces.d/60-floating-ip.cfg"
owner: root
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