aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/wireguard/templates
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2024-03-23 19:25:36 +0100
committerEgor Tensin <egor@tensin.name>2024-03-23 19:25:36 +0100
commit87b049ac83717001e7600a4b32e086e3b6ea6380 (patch)
tree7c0d8f4ffda3e86762a21775055c509d3a2ec371 /roles/wireguard/templates
parentv3.0.0 (diff)
downloadinfra-ansible-87b049ac83717001e7600a4b32e086e3b6ea6380.tar.gz
infra-ansible-87b049ac83717001e7600a4b32e086e3b6ea6380.zip
wireguard: add dependency on wg-quick service also
Diffstat (limited to 'roles/wireguard/templates')
-rw-r--r--roles/wireguard/templates/depend_service_wg-quick.conf.j27
1 files changed, 7 insertions, 0 deletions
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