2024-02-26 13:30:17 +00:00
|
|
|
- name: Install FRR
|
2024-05-18 16:35:41 +00:00
|
|
|
package: name=frr,frr-pythontools
|
2023-10-18 13:01:02 +00:00
|
|
|
|
2024-05-18 16:35:41 +00:00
|
|
|
- name: Copy FRR config
|
2023-10-18 13:01:02 +00:00
|
|
|
template:
|
|
|
|
dest: /etc/frr/frr.conf
|
|
|
|
src: frr.conf.j2
|
|
|
|
mode: 0644
|
|
|
|
notify: reload frr
|
|
|
|
|
2024-03-22 17:51:29 +00:00
|
|
|
- name: Set datacenter defaults for FRR
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/frr/daemons
|
|
|
|
line: 'frr_profile="datacenter"'
|
|
|
|
regexp: '#?frr_profile="datacenter"'
|
|
|
|
|
2024-05-18 16:35:41 +00:00
|
|
|
- name: Enable FRR daemons
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/frr/daemons
|
|
|
|
regexp: "^{{ item }}="
|
|
|
|
line: "{{ item }}=yes"
|
|
|
|
loop:
|
|
|
|
- bfdd
|
|
|
|
- bgpd
|
|
|
|
notify: restart frr
|
|
|
|
|
|
|
|
- name: Enable FRR service
|
2023-10-18 13:01:02 +00:00
|
|
|
service:
|
|
|
|
name: frr
|
|
|
|
enabled: yes
|
|
|
|
state: started
|