1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2026-03-23 05:22:00 +01:00
infrastructure/playbooks/tasks/invalidate-wireguard-interfaces.yaml
Christian Heusel 60fb85a2ae
Add new playbook to invalidate wireguard connections
This can be used to force re-peering, as systemd-networkd does not do
this on its own.

Link: https://github.com/systemd/systemd/issues/9911
Signed-off-by: Christian Heusel <christian@heusel.eu>
2025-12-30 12:10:55 +01:00

11 lines
316 B
YAML

- name: Invalidate wireguard interfaces
hosts: all
tasks:
- name: Delete wg0 # noqa no-changed-when
command: networkctl delete wg0
register: result
failed_when: result.rc not in [0, 1]
- name: Reload .network and .netdev files # noqa no-changed-when
command: networkctl reload