Added radvd
This commit is contained in:
parent
a60021a860
commit
7ed228992d
6
roles/radvd/handlers/main.yml
Normal file
6
roles/radvd/handlers/main.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Restart radvd
|
||||||
|
service: name={{ item }} state=restarted
|
||||||
|
with_items:
|
||||||
|
- radvd
|
18
roles/radvd/tasks/main.yml
Normal file
18
roles/radvd/tasks/main.yml
Normal 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
|
15
roles/radvd/templates/radvd.conf.j2
Normal file
15
roles/radvd/templates/radvd.conf.j2
Normal 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')}} {
|
||||||
|
};
|
||||||
|
};
|
21
site.yml
21
site.yml
@ -10,16 +10,17 @@
|
|||||||
- name: Setup gateway servers
|
- name: Setup gateway servers
|
||||||
hosts: [gw11.regensburg.freifunk.net, gw21.regensburg.freifunk.net, gw31.regensburg.freifunk.net]
|
hosts: [gw11.regensburg.freifunk.net, gw21.regensburg.freifunk.net, gw31.regensburg.freifunk.net]
|
||||||
roles:
|
roles:
|
||||||
- batman
|
# - batman
|
||||||
- bird
|
# - bird
|
||||||
- fastd
|
# - fastd
|
||||||
- mesh-interfaces
|
# - mesh-interfaces
|
||||||
- exit-ipv4
|
# - exit-ipv4
|
||||||
- dns
|
# - dns
|
||||||
- dhcpd
|
- radvd
|
||||||
- respondd
|
# - dhcpd
|
||||||
- yanic
|
# - respondd
|
||||||
- web-gw
|
# - yanic
|
||||||
|
# - web-gw
|
||||||
|
|
||||||
- name: Setup confluence server
|
- name: Setup confluence server
|
||||||
hosts: confluence.regensburg.freifunk.net
|
hosts: confluence.regensburg.freifunk.net
|
||||||
|
Loading…
Reference in New Issue
Block a user