dn42-ansible/update-bgp.yml

18 lines
471 B
YAML
Raw Normal View History

2024-11-21 23:57:14 +00:00
- 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'