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

47 lines
834 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
become: true
- 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
become: true
- 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
become: true
- name: enable + start systemd units bird + bird6
systemd:
name: bird{{ item }}
enabled: yes
state: started
with_items:
- ""
- 6
become: true