38 lines
593 B
YAML
38 lines
593 B
YAML
|
---
|
||
|
- name: Install bird
|
||
|
apt:
|
||
|
name: bird
|
||
|
|
||
|
- name: Configure bird
|
||
|
template:
|
||
|
src: bird.conf
|
||
|
dest: /etc/bird/bird.conf
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: u=rw,g=,o=
|
||
|
notify:
|
||
|
- Reload bird
|
||
|
|
||
|
- name: Configure bird6
|
||
|
template:
|
||
|
src: bird6.conf
|
||
|
dest: /etc/bird/bird6.conf
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: u=rw,g=,o=
|
||
|
notify:
|
||
|
- Reload bird6
|
||
|
|
||
|
- name: Enable and start bird
|
||
|
systemd:
|
||
|
name: bird.service
|
||
|
enabled: true
|
||
|
state: started
|
||
|
|
||
|
- name: Enable and start bird6
|
||
|
systemd:
|
||
|
name: bird6.service
|
||
|
enabled: true
|
||
|
state: started
|
||
|
...
|