--- - 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