Timotej Lazar
25bcddede1
Consolidate base system and networking setup into debian role and BGP configuration into frr role. Add facts role to collect data from NetBox once to avoid many slow lookups. Also many other tweaks and cleanups.
32 lines
602 B
YAML
32 lines
602 B
YAML
- 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
|