bird: Initial version of role
This commit is contained in:
parent
644299f49a
commit
f73ca08805
3 changed files with 41 additions and 0 deletions
BIN
roles/bird/tasks/.main.yml.swp
Normal file
BIN
roles/bird/tasks/.main.yml.swp
Normal file
Binary file not shown.
19
roles/bird/tasks/main.yml
Normal file
19
roles/bird/tasks/main.yml
Normal 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
|
22
roles/bird/templates/bird.conf.j2
Normal file
22
roles/bird/templates/bird.conf.j2
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue