From b49b58d2749d50a42b25d39a744b0edc8d24bf77 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 12 Jun 2024 21:14:09 +0200 Subject: wip --- tnet/wg-links-link.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'tnet/wg-links-link.yml') diff --git a/tnet/wg-links-link.yml b/tnet/wg-links-link.yml index aaaf01f..6f1bb87 100644 --- a/tnet/wg-links-link.yml +++ b/tnet/wg-links-link.yml @@ -1,3 +1,9 @@ +- notify: systemctl restart systemd-networkd + become: yes + file: + path: "/etc/systemd/network/50-tnet-{{ inventory_hostname }}-{{ item.key }}.netdev" + state: absent + - name: "Make netdev for {{ inventory_hostname }} -> {{ item.key }}" notify: systemctl restart systemd-networkd become: yes @@ -26,6 +32,12 @@ PersistentKeepalive=60 {% endif %} +- notify: systemctl restart systemd-networkd + become: yes + file: + path: "/etc/systemd/network/50-tnet-{{ inventory_hostname }}-{{ item.key }}.network" + state: absent + - name: "Make network for {{ inventory_hostname }} -> {{ item.key }}" notify: systemctl restart systemd-networkd become: yes @@ -38,4 +50,4 @@ Name=tnet-{{ item.key }} [Network] - Address={{ item.value.address }}/127 + Address={{ item.value.address }}/64 -- cgit v1.2.3