Added radvd

This commit is contained in:
Bastian Mäuser 2018-01-23 23:57:23 +01:00
parent a60021a860
commit 7ed228992d
4 changed files with 50 additions and 10 deletions

View File

@ -0,0 +1,6 @@
---
- name: Restart radvd
service: name={{ item }} state=restarted
with_items:
- radvd

View File

@ -0,0 +1,18 @@
---
- name: Install radvd
apt: name={{ item }}
with_items:
- radvd
- name: Configure radvd
template: src={{ item }}.j2 dest=/etc/{{ item }}
tags: radvd
notify: Restart radvd
with_items:
- radvd.conf
- name: Start the radvd service
service: name={{ item }} state=started enabled=yes
with_items:
- radvd

View File

@ -0,0 +1,15 @@
interface br-{{ site_code }} {
AdvSendAdvert on;
IgnoreIfMissing on;
AdvManagedFlag off;
AdvOtherConfigFlag on;
MaxRtrAdvInterval 200;
AdvLinkMTU {{ mtu }};
prefix {{ batman_ipv6 | ipaddr('address') | ipsubnet(64) }}
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
RDNSS {{ batman_ipv6 | ipaddr('address')}} {
};
};

View File

@ -10,16 +10,17 @@
- name: Setup gateway servers
hosts: [gw11.regensburg.freifunk.net, gw21.regensburg.freifunk.net, gw31.regensburg.freifunk.net]
roles:
- batman
- bird
- fastd
- mesh-interfaces
- exit-ipv4
- dns
- dhcpd
- respondd
- yanic
- web-gw
# - batman
# - bird
# - fastd
# - mesh-interfaces
# - exit-ipv4
# - dns
- radvd
# - dhcpd
# - respondd
# - yanic
# - web-gw
- name: Setup confluence server
hosts: confluence.regensburg.freifunk.net