aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/knot-misc/files/etc/radvd.conf20
-rw-r--r--ansible/roles/knot-misc/handlers/main.yml1
-rw-r--r--ansible/roles/knot-misc/handlers/radvd.yml4
-rw-r--r--ansible/roles/knot-misc/tasks/main.yml3
-rw-r--r--ansible/roles/knot-misc/tasks/radvd.yml5
5 files changed, 33 insertions, 0 deletions
diff --git a/ansible/roles/knot-misc/files/etc/radvd.conf b/ansible/roles/knot-misc/files/etc/radvd.conf
new file mode 100644
index 0000000..2305cc2
--- /dev/null
+++ b/ansible/roles/knot-misc/files/etc/radvd.conf
@@ -0,0 +1,20 @@
+interface br0
+{
+ AdvSendAdvert on;
+ MinRtrAdvInterval 5;
+ MaxRtrAdvInterval 10;
+ MinDelayBetweenRAs 1;
+
+ AdvDefaultPreference medium;
+ AdvLinkMTU 1500;
+
+ prefix 2a01:7e00:e000:272::/64
+ {
+ AdvOnLink on;
+ AdvAutonomous on;
+
+ AdvValidLifetime 14400;
+ AdvPreferredLifetime 3600;
+ AdvRouterAddr on;
+ };
+};
diff --git a/ansible/roles/knot-misc/handlers/main.yml b/ansible/roles/knot-misc/handlers/main.yml
index b4a5aca..6dc4047 100644
--- a/ansible/roles/knot-misc/handlers/main.yml
+++ b/ansible/roles/knot-misc/handlers/main.yml
@@ -1 +1,2 @@
- include: fail2ban.yml
+- include: radvd.yml
diff --git a/ansible/roles/knot-misc/handlers/radvd.yml b/ansible/roles/knot-misc/handlers/radvd.yml
new file mode 100644
index 0000000..70f214d
--- /dev/null
+++ b/ansible/roles/knot-misc/handlers/radvd.yml
@@ -0,0 +1,4 @@
+- name: restart radvd
+ service:
+ name: radvd
+ state: reloaded
diff --git a/ansible/roles/knot-misc/tasks/main.yml b/ansible/roles/knot-misc/tasks/main.yml
index 94a1388..e1aab9a 100644
--- a/ansible/roles/knot-misc/tasks/main.yml
+++ b/ansible/roles/knot-misc/tasks/main.yml
@@ -1,3 +1,6 @@
- name: fail2ban
tags: fail2ban
include: fail2ban.yml
+- name: radvd
+ tags: radvd
+ include: radvd.yml
diff --git a/ansible/roles/knot-misc/tasks/radvd.yml b/ansible/roles/knot-misc/tasks/radvd.yml
new file mode 100644
index 0000000..831752d
--- /dev/null
+++ b/ansible/roles/knot-misc/tasks/radvd.yml
@@ -0,0 +1,5 @@
+- name: /etc/radvd.conf
+ notify: restart radvd
+ copy:
+ dest: /etc/radvd.conf
+ src: etc/radvd.conf