ansible/roles/ipv6_edge_router/tasks/main.yml

34 lines
580 B
YAML
Raw Normal View History

2020-09-28 18:15:03 +02:00
---
2021-02-03 23:31:56 +01:00
- name: Install quagga
2020-09-28 18:15:03 +02:00
apt:
2021-02-03 23:31:56 +01:00
name: quagga
2020-09-28 18:15:03 +02:00
2021-02-03 23:31:56 +01:00
- name: Tweak sysctl for table size
ansible.posix.sysctl:
name: net.ipv6.route.max_size
value: '500000'
2021-02-03 23:31:56 +01:00
sysctl_set: yes
2020-09-28 18:15:03 +02:00
2021-02-03 23:31:56 +01:00
- name: Setup Quagga configuration
2020-09-28 18:15:03 +02:00
template:
2021-02-03 23:31:56 +01:00
src: "{{ item }}.j2"
dest: "/etc/quagga/{{ item }}"
mode: u=rw,g=r,o=
2021-02-03 23:31:56 +01:00
loop:
- daemons
- zebra.conf
- bgpd.conf
2021-02-03 23:31:56 +01:00
notify:
- restart bgpd
- restart zebra
2020-09-28 18:15:03 +02:00
2021-02-03 23:31:56 +01:00
- name: enable+start bgpd and quagga
2020-09-28 18:15:03 +02:00
service:
2021-02-03 23:31:56 +01:00
name: "{{ item }}"
2020-09-28 18:15:03 +02:00
state: started
2020-11-04 19:58:54 +01:00
enabled: true
2021-02-03 23:31:56 +01:00
loop:
- bgpd.service
- zebra.service
...