diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2023-10-11 19:51:04 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2023-10-11 19:51:04 +0200 |
commit | c74f7722d3cfb5faffe2c808484eee78b05f9a44 (patch) | |
tree | 33c890070da094281e1bef21fd6427fdea9d82ad /ansible/bgp | |
parent | 337fdaf446eb38417f0808f84e7eba891e592b05 (diff) | |
download | infra-c74f7722d3cfb5faffe2c808484eee78b05f9a44.tar.gz infra-c74f7722d3cfb5faffe2c808484eee78b05f9a44.tar.bz2 infra-c74f7722d3cfb5faffe2c808484eee78b05f9a44.tar.xz infra-c74f7722d3cfb5faffe2c808484eee78b05f9a44.zip |
bgp
Diffstat (limited to 'ansible/bgp')
-rw-r--r-- | ansible/bgp/bgp.yml | 2 | ||||
-rw-r--r-- | ansible/bgp/bird-install.yml | 11 | ||||
-rw-r--r-- | ansible/bgp/host_vars/knot/bgp.yml | 1 | ||||
-rw-r--r-- | ansible/bgp/host_vars/lhn2ix/bgp.yml | 6 |
4 files changed, 19 insertions, 1 deletions
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 |