mirror of
https://gitea.0xace.cc/ansible-galaxy/bird.git
synced 2025-01-18 12:02:22 +00:00
add centos 7/8 varians
This commit is contained in:
parent
d172925447
commit
84425da4c2
26
tasks/RedHat/7.yaml
Normal file
26
tasks/RedHat/7.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
- 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
|
26
tasks/RedHat/8.yaml
Normal file
26
tasks/RedHat/8.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
- name: install bird
|
||||
package:
|
||||
name: bird
|
||||
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
|
@ -1,26 +1,3 @@
|
||||
---
|
||||
- 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
|
||||
- name: Include BIRD installation tasks
|
||||
include: "{{ ansible_os_family }}/{{ ansible_distribution_version }}.yaml"
|
||||
|
Loading…
Reference in New Issue
Block a user