33 lines
581 B
YAML
33 lines
581 B
YAML
---
|
|
- name: Install quagga
|
|
apt:
|
|
name: quagga
|
|
|
|
- name: Tweak sysctl for table size
|
|
ansible.posix.sysctl:
|
|
name: net.ipv6.route.max_size
|
|
value: '500000'
|
|
sysctl_set: yes
|
|
|
|
- name: Setup Quagga configuration
|
|
template:
|
|
src: "{{ item }}.j2"
|
|
dest: "/etc/quagga/{{ item }}"
|
|
mode: u=rw,g=r,o=r
|
|
loop:
|
|
- daemons
|
|
- zebra.conf
|
|
- bgpd.conf
|
|
notify:
|
|
- restart bgpd
|
|
- restart zebra
|
|
|
|
- name: enable+start bgpd and quagga
|
|
service:
|
|
name: "{{ item }}"
|
|
state: started
|
|
enabled: true
|
|
loop:
|
|
- bgpd.service
|
|
- zebra.service
|
|
...
|