ansible/roles/bird/tasks/main.yml

29 lines
454 B
YAML
Raw Permalink Normal View History

---
- 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