enable bgp
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
d8f4aa4a03
commit
5d167549b2
2 changed files with 15 additions and 2 deletions
|
|
@ -3,3 +3,8 @@
|
|||
- name: systemctl daemon-reload
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: systemctl reload frr
|
||||
ansible.builtin.systemd:
|
||||
name: frr
|
||||
reload: true
|
||||
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue