bird: Initial version of role

This commit is contained in:
Timo Makinen 2021-03-16 00:56:00 +00:00
parent 644299f49a
commit f73ca08805
3 changed files with 41 additions and 0 deletions

Binary file not shown.

19
roles/bird/tasks/main.yml Normal file
View file

@ -0,0 +1,19 @@
---
- name: install packages
package:
name: bird%2
state: installed
- name: copy ipv4 config
template:
dest: /etc/bird.conf
src: bird.conf.j2
mode: 0600
owner: root
group: "{{ ansible_wheel }}"
- name: start services
service:
name: bird
state: started
enabled: true

View file

@ -0,0 +1,22 @@
log syslog all;
debug protocols off;
router id 10.123.27.61;
protocol device {
scan time 10;
}
protocol ospf {
disabled yes;
area 0.0.0.0 {
interface "tap0" {
hello 1;
dead 30;
real broadcast yes;
};
interface "carp145" {
stub;
};
};
}