dn42-ansible/update-bgp.yml
2024-11-21 15:57:14 -08:00

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'