bird/tasks/main.yml

27 lines
446 B
YAML
Raw Normal View History

2021-10-25 09:53:52 +00:00
---
- name: install bird
package:
name: bird2
state: present
- name: add bird config
template:
src: bird.conf.j2
dest: /etc/bird.conf
notify:
- restart bird
- name: update ifcfg-lo config
template:
src: ifcfg-lo.j2
dest: /etc/sysconfig/network-scripts/ifcfg-lo
notify:
- restart loopback
- name: start bird service
systemd:
name: bird
state: started
enabled: yes
daemon_reload: yes