enable bgp

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-12-01 16:33:07 +01:00
commit 5d167549b2
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
2 changed files with 15 additions and 2 deletions

View file

@ -1,9 +1,17 @@
---
- name: deploy dnsmasq
- name: Enable bgpd
ansible.builtin.lineinfile:
path: /etc/frr/daemons
regexp: "^bgpd="
line: "bgpd=yes"
when: frr.config.daemons.bgpd|default(false)
notify: systemctl reload frr
- name: deploy frr
ansible.builtin.template:
src: etc/frr/frr.conf.j2
dest: "/etc/frr/frr.conf"
notify: systemctl daemon-reload
notify: systemctl reload frr
vars:
route_reflector: "192.168.11.1"