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>
12 lines
377 B
YAML
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
|