mirror of
https://gitea.0xace.cc/ansible-galaxy/bird.git
synced 2024-11-25 08:06:38 +00:00
27 lines
445 B
YAML
27 lines
445 B
YAML
---
|
|
- name: Install BIRD
|
|
package:
|
|
name: bird2
|
|
state: present
|
|
|
|
- name: Add BIRD config
|
|
template:
|
|
src: bird.conf.j2
|
|
dest: /etc/bird.conf
|
|
notify:
|
|
- Reload 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
|