Compare commits
2 commits
9cb8312232
...
5407839724
Author | SHA1 | Date | |
---|---|---|---|
5407839724 | |||
97592a0975 |
2 changed files with 10 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue