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
|
- hosts: all
|
||||||
tags: bgp
|
tags: bgp
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: gather facts
|
||||||
|
setup:
|
||||||
|
tags: check
|
||||||
- name: install FRR
|
- name: install FRR
|
||||||
package:
|
package:
|
||||||
name: frr
|
name: frr
|
||||||
|
@ -225,6 +228,12 @@
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
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:
|
handlers:
|
||||||
- name: restart frr
|
- name: restart frr
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -4,6 +4,6 @@ Name=bgp-backup
|
||||||
[Network]
|
[Network]
|
||||||
{% for host in groups['all'] -%}
|
{% for host in groups['all'] -%}
|
||||||
{%- if host != inventory_hostname -%}
|
{%- if host != inventory_hostname -%}
|
||||||
Address={{ hostvars[host]['bgp_ipv6'] }}
|
Address={{ hostvars[host]['bgp_ipv6'] }}/128
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue