servers/roles/frr/tasks/main.yml

32 lines
602 B
YAML
Raw Normal View History

- name: Install FRR
package: name=frr,frr-pythontools
- name: Copy FRR config
template:
dest: /etc/frr/frr.conf
src: frr.conf.j2
mode: 0644
notify: reload frr
- name: Set datacenter defaults for FRR
lineinfile:
path: /etc/frr/daemons
line: 'frr_profile="datacenter"'
regexp: '#?frr_profile="datacenter"'
- name: Enable FRR daemons
lineinfile:
path: /etc/frr/daemons
regexp: "^{{ item }}="
line: "{{ item }}=yes"
loop:
- bfdd
- bgpd
notify: restart frr
- name: Enable FRR service
service:
name: frr
enabled: yes
state: started