ansible-ffibk/roles/service-bird/tasks/main.yml

43 lines
774 B
YAML
Raw Normal View History

2017-09-10 23:56:34 +02:00
---
- name: install bird packages
apt:
name: "{{ item }}"
state: present
notify: reload systemd
with_items:
- bird-bgp
- bird-doc
- name: write bird configuration
template:
src: bird{{ item }}.conf.j2
dest: /etc/bird/bird{{ item }}.conf
mode: 0640
owner: bird
group: bird
notify: reload bird{{ item }}
with_items:
- ""
- 6
- name: configure mwu peers
template:
src: mwu_ipv{{ item }}_peers.conf.j2
dest: /etc/bird/mwu_ipv{{ item }}_peers.conf
mode: 0640
owner: bird
group: bird
notify: reload bird{{ item }}
with_items:
- 4
- 6
- name: enable + start systemd units bird + bird6
systemd:
name: bird{{ item }}
enabled: yes
state: started
with_items:
- ""
- 6