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
|
|
|
|
sysctl_set: yes
|
|
|
|
notify: Apply sysctl
|
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.dest }}"
|
|
|
|
mode: u=rw,g=r,o=r
|
|
|
|
loop:
|
|
|
|
- daemons.j2
|
|
|
|
- zebra.conf.j2
|
|
|
|
- bgpd.conf.j2
|
|
|
|
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
|
|
|
|
...
|