summaryrefslogtreecommitdiff
path: root/roles/install_wg_add_vpn/templates/wg_add_vpn.service.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install_wg_add_vpn/templates/wg_add_vpn.service.j2')
-rw-r--r--roles/install_wg_add_vpn/templates/wg_add_vpn.service.j210
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/install_wg_add_vpn/templates/wg_add_vpn.service.j2 b/roles/install_wg_add_vpn/templates/wg_add_vpn.service.j2
new file mode 100644
index 0000000..da1470d
--- /dev/null
+++ b/roles/install_wg_add_vpn/templates/wg_add_vpn.service.j2
@@ -0,0 +1,10 @@
+[Unit]
+Description=wg_add
+After=network.target
+
+[Service]
+ExecStart=/opt/wg_add_vpn/wg_add {{ ansible_default_ipv4.interface }} wgmyk
+Restart=always
+
+[Install]
+WantedBy=multi-user.target