From 07a7b0f0a380f8d18d8efc1b4c602015b51a49ef Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 23 Sep 2018 01:09:44 +0200 Subject: o Adding radvd config to knot. --- ansible/roles/knot-misc/files/etc/radvd.conf | 20 ++++++++++++++++++++ ansible/roles/knot-misc/handlers/main.yml | 1 + ansible/roles/knot-misc/handlers/radvd.yml | 4 ++++ ansible/roles/knot-misc/tasks/main.yml | 3 +++ ansible/roles/knot-misc/tasks/radvd.yml | 5 +++++ 5 files changed, 33 insertions(+) create mode 100644 ansible/roles/knot-misc/files/etc/radvd.conf create mode 100644 ansible/roles/knot-misc/handlers/radvd.yml create mode 100644 ansible/roles/knot-misc/tasks/radvd.yml (limited to 'ansible/roles/knot-misc') 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 -- cgit v1.2.3