bird/tasks/RedHat/7.yaml

27 lines
445 B
YAML
Raw Normal View History

2021-10-25 11:24:40 +00:00
---
2021-10-25 12:26:23 +00:00
- name: Install BIRD
2021-10-25 11:24:40 +00:00
package:
name: bird2
state: present
2021-10-25 12:26:23 +00:00
- name: Add BIRD config
2021-10-25 11:24:40 +00:00
template:
src: bird.conf.j2
dest: /etc/bird.conf
notify:
2021-10-25 12:26:23 +00:00
- reload bird
2021-10-25 11:24:40 +00:00
2021-10-25 12:26:23 +00:00
- name: Update ifcfg-lo config
2021-10-25 11:24:40 +00:00
template:
src: ifcfg-lo.j2
dest: /etc/sysconfig/network-scripts/ifcfg-lo
notify:
2021-10-25 12:26:23 +00:00
- Restart loopback
2021-10-25 11:24:40 +00:00
2021-10-25 12:26:23 +00:00
- name: Start BIRD service
2021-10-25 11:24:40 +00:00
systemd:
name: bird
state: started
enabled: yes
daemon_reload: yes