2017-09-10 23:56:34 +02:00
|
|
|
---
|
|
|
|
- name: install bird packages
|
2017-10-11 17:53:20 +02:00
|
|
|
package:
|
2017-09-10 23:56:34 +02:00
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
2018-09-16 12:38:33 +02:00
|
|
|
loop:
|
2017-09-10 23:56:34 +02:00
|
|
|
- bird-bgp
|
|
|
|
- bird-doc
|
|
|
|
|
2017-10-03 23:31:15 +02:00
|
|
|
- name: set directory permissions for /etc/bird
|
|
|
|
file:
|
|
|
|
path: /etc/bird
|
|
|
|
state: directory
|
|
|
|
mode: 0755
|
|
|
|
|
2017-10-04 19:46:16 +02:00
|
|
|
- name: write bird.conf
|
2017-09-10 23:56:34 +02:00
|
|
|
template:
|
2017-10-04 19:46:16 +02:00
|
|
|
src: bird.conf.j2
|
|
|
|
dest: /etc/bird/bird.conf
|
2017-09-10 23:56:34 +02:00
|
|
|
mode: 0640
|
|
|
|
owner: bird
|
|
|
|
group: bird
|
2017-10-04 19:46:16 +02:00
|
|
|
notify: reload systemd unit bird
|
2017-09-10 23:56:34 +02:00
|
|
|
|
2017-10-04 19:46:16 +02:00
|
|
|
- name: write bird6.conf
|
2017-09-10 23:56:34 +02:00
|
|
|
template:
|
2017-10-04 19:46:16 +02:00
|
|
|
src: bird6.conf.j2
|
|
|
|
dest: /etc/bird/bird6.conf
|
2017-09-10 23:56:34 +02:00
|
|
|
mode: 0640
|
|
|
|
owner: bird
|
|
|
|
group: bird
|
2017-10-04 19:46:16 +02:00
|
|
|
notify: reload systemd unit bird6
|
|
|
|
|
|
|
|
- name: write mwu_ipv4_peers.conf
|
|
|
|
template:
|
|
|
|
src: mwu_ipv4_peers.conf.j2
|
|
|
|
dest: /etc/bird/mwu_ipv4_peers.conf
|
|
|
|
mode: 0640
|
|
|
|
owner: bird
|
|
|
|
group: bird
|
2018-09-20 11:33:34 +02:00
|
|
|
tags: sync-peers
|
2017-10-04 19:46:16 +02:00
|
|
|
notify: reload systemd unit bird
|
|
|
|
|
|
|
|
- name: write mwu_ipv6_peers.conf
|
|
|
|
template:
|
|
|
|
src: mwu_ipv6_peers.conf.j2
|
|
|
|
dest: /etc/bird/mwu_ipv6_peers.conf
|
|
|
|
mode: 0640
|
|
|
|
owner: bird
|
|
|
|
group: bird
|
2018-09-20 11:33:34 +02:00
|
|
|
tags: sync-peers
|
2017-10-04 19:46:16 +02:00
|
|
|
notify: reload systemd unit bird6
|
2017-09-10 23:56:34 +02:00
|
|
|
|
|
|
|
- name: enable + start systemd units bird + bird6
|
|
|
|
systemd:
|
|
|
|
name: bird{{ item }}
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
2018-09-16 12:38:33 +02:00
|
|
|
loop:
|
2017-09-10 23:56:34 +02:00
|
|
|
- ""
|
|
|
|
- 6
|