From 87b049ac83717001e7600a4b32e086e3b6ea6380 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 23 Mar 2024 19:25:36 +0100 Subject: wireguard: add dependency on wg-quick service also --- roles/wireguard/templates/depend_service_wg-quick.conf.j2 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 roles/wireguard/templates/depend_service_wg-quick.conf.j2 (limited to 'roles/wireguard/templates') diff --git a/roles/wireguard/templates/depend_service_wg-quick.conf.j2 b/roles/wireguard/templates/depend_service_wg-quick.conf.j2 new file mode 100644 index 0000000..b40e6eb --- /dev/null +++ b/roles/wireguard/templates/depend_service_wg-quick.conf.j2 @@ -0,0 +1,7 @@ +{{ ansible_managed | comment }} + +[Unit] +# This is required so that systemd actually starts the wg-quick service before +# the dependants. We also set up the actual dependency on the interface so that +# the dependants actually start after the interface is up. +After=wg-quick@{{ wg_name }}.service -- cgit v1.2.3