summaryrefslogtreecommitdiff
path: root/roles/router/templates/tinc-up.j2
diff options
context:
space:
mode:
authoruvok cheetah2023-08-20 12:05:53 +0200
committeruvok cheetah2023-08-20 12:05:53 +0200
commit2b2d2627e345ad2829184c009ad4ed827d39124f (patch)
tree9ffc3849f48e3413a6b80b2adb8fc6fb47385c1d /roles/router/templates/tinc-up.j2
parent88acccaf3136f5a106a3e16626571ab7c4936302 (diff)
Add ansible tinc config
Diffstat (limited to 'roles/router/templates/tinc-up.j2')
-rwxr-xr-xroles/router/templates/tinc-up.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/router/templates/tinc-up.j2 b/roles/router/templates/tinc-up.j2
new file mode 100755
index 0000000..93ab205
--- /dev/null
+++ b/roles/router/templates/tinc-up.j2
@@ -0,0 +1,4 @@
+#!/bin/sh
+ip link set $INTERFACE up
+ip -6 addr flush dev $INTERFACE
+ip addr add {{ tinc.address }} dev $INTERFACE