diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-09-23 01:09:44 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-09-23 01:09:44 +0200 |
commit | 07a7b0f0a380f8d18d8efc1b4c602015b51a49ef (patch) | |
tree | 349aeb73130fce1fe39e46e47881ee428adf4d66 /ansible/roles | |
parent | f400516745aee13ee55e59623717e82619818c10 (diff) | |
download | infra-07a7b0f0a380f8d18d8efc1b4c602015b51a49ef.tar.gz infra-07a7b0f0a380f8d18d8efc1b4c602015b51a49ef.tar.bz2 infra-07a7b0f0a380f8d18d8efc1b4c602015b51a49ef.tar.xz infra-07a7b0f0a380f8d18d8efc1b4c602015b51a49ef.zip |
o Adding radvd config to knot.
Diffstat (limited to 'ansible/roles')
-rw-r--r-- | ansible/roles/knot-misc/files/etc/radvd.conf | 20 | ||||
-rw-r--r-- | ansible/roles/knot-misc/handlers/main.yml | 1 | ||||
-rw-r--r-- | ansible/roles/knot-misc/handlers/radvd.yml | 4 | ||||
-rw-r--r-- | ansible/roles/knot-misc/tasks/main.yml | 3 | ||||
-rw-r--r-- | ansible/roles/knot-misc/tasks/radvd.yml | 5 |
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 |