mirror of
https://gitea.0xace.cc/ansible-galaxy/bird.git
synced 2024-11-25 08:06:38 +00:00
27 lines
446 B
YAML
27 lines
446 B
YAML
---
|
|
- 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
|