ansible/roles/bird/tasks/main.yml
Yohann D'ANELLO 6f4c39dbd8
[bird] Use Bird to do BGP with Zayo and Crans
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-07-04 14:20:30 +02:00

28 lines
454 B
YAML

---
- name: Install Bird
apt:
name: bird
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Configure Bird
template:
src: "bird/{{ item }}.conf.j2"
dest: "/etc/bird/{{ item }}.conf"
owner: bird
group: bird
mode: '0600'
loop:
- bird
- bird6
notify: Reload Bird
- name: Start Bird
systemd:
name: "{{ item }}"
state: started
loop:
- bird
- bird6