From c74f7722d3cfb5faffe2c808484eee78b05f9a44 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 11 Oct 2023 19:51:04 +0200 Subject: bgp --- ansible/bgp/bgp.yml | 2 +- ansible/bgp/bird-install.yml | 11 +++++++++++ ansible/bgp/host_vars/knot/bgp.yml | 1 + ansible/bgp/host_vars/lhn2ix/bgp.yml | 6 ++++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 ansible/bgp/bird-install.yml create mode 100644 ansible/bgp/host_vars/lhn2ix/bgp.yml (limited to 'ansible/bgp') diff --git a/ansible/bgp/bgp.yml b/ansible/bgp/bgp.yml index a3e6ce3..cf80b37 100644 --- a/ansible/bgp/bgp.yml +++ b/ansible/bgp/bgp.yml @@ -41,7 +41,7 @@ register: template - systemd: - state: restarted + state: reloaded service: bird when: template.changed become: yes diff --git a/ansible/bgp/bird-install.yml b/ansible/bgp/bird-install.yml new file mode 100644 index 0000000..c52ce50 --- /dev/null +++ b/ansible/bgp/bird-install.yml @@ -0,0 +1,11 @@ +- hosts: + - bgp + tasks: + - name: Install bird2 + become: yes + vars: + items: + - bird2 + apt: + install_recommends: no + name: "{{ items }}" diff --git a/ansible/bgp/host_vars/knot/bgp.yml b/ansible/bgp/host_vars/knot/bgp.yml index 8978cea..dc8d8e7 100644 --- a/ansible/bgp/host_vars/knot/bgp.yml +++ b/ansible/bgp/host_vars/knot/bgp.yml @@ -4,3 +4,4 @@ bgp_peers: - akili - astyanax - hash + - lhn2ix diff --git a/ansible/bgp/host_vars/lhn2ix/bgp.yml b/ansible/bgp/host_vars/lhn2ix/bgp.yml new file mode 100644 index 0000000..33e2131 --- /dev/null +++ b/ansible/bgp/host_vars/lhn2ix/bgp.yml @@ -0,0 +1,6 @@ +bgp_as: 4230483904 +bgp_ip: "{{ wireguard_wg0.hosts[inventory_hostname].ipv6 }}" +bgp_mynet: fdf3:aad9:a885:9d81::/64 +#bgp_mynet_if: enp2s0 +bgp_peers: + - knot -- cgit v1.2.3