17 lines
471 B
YAML
17 lines
471 B
YAML
- hosts: routers
|
|
remote_user: root
|
|
tasks:
|
|
- name: add internal bgp peers
|
|
template:
|
|
src: int-bgp.j2
|
|
dest: /etc/bird/peers/internal.conf
|
|
- name: add route collector peering
|
|
copy:
|
|
src: collector.conf
|
|
dest: /etc/bird/peers/collector.conf
|
|
- name: reload bird
|
|
ansible.builtin.systemd_service:
|
|
name: bird.service
|
|
enabled: true
|
|
state: reloaded
|
|
when: ansible_service_mgr == 'systemd'
|