Compare commits

...

2 commits

Author SHA1 Message Date
5407839724 check bgp is working great
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
2024-06-20 12:06:30 +02:00
97592a0975 fix /128
Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
2024-06-20 11:56:10 +02:00
2 changed files with 10 additions and 1 deletions

View file

@ -158,6 +158,9 @@
- hosts: all
tags: bgp
tasks:
- name: gather facts
setup:
tags: check
- name: install FRR
package:
name: frr
@ -225,6 +228,12 @@
enabled: yes
state: started
- name: Check that announces are okay
delegate_to: ikvps.k3s.fr
shell: "curl http://[{{bgp_ipv6}}] | grep 'NTP server {{ansible_hostname}}'"
tags: check
handlers:
- name: restart frr
systemd:

View file

@ -4,6 +4,6 @@ Name=bgp-backup
[Network]
{% for host in groups['all'] -%}
{%- if host != inventory_hostname -%}
Address={{ hostvars[host]['bgp_ipv6'] }}
Address={{ hostvars[host]['bgp_ipv6'] }}/128
{% endif -%}
{% endfor %}