mirror of
https://gitea.0xace.cc/ansible-galaxy/bird.git
synced 2024-11-24 23:56:38 +00:00
fix el8
This commit is contained in:
parent
3b6f8b5ea7
commit
5de53a9171
@ -8,3 +8,7 @@
|
|||||||
- name: restart loopback
|
- name: restart loopback
|
||||||
shell: |
|
shell: |
|
||||||
ifdown lo ; ifup lo
|
ifdown lo ; ifup lo
|
||||||
|
|
||||||
|
|
||||||
|
- name: reload dummy interface
|
||||||
|
command: nmcli conn up lo0
|
||||||
|
@ -1,22 +1,26 @@
|
|||||||
---
|
---
|
||||||
- name: install bird
|
- name: Install bird
|
||||||
package:
|
package:
|
||||||
name: bird
|
name: bird
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: add bird config
|
- name: Add bird config
|
||||||
template:
|
template:
|
||||||
src: bird.conf.j2
|
src: bird.conf.j2
|
||||||
dest: /etc/bird.conf
|
dest: /etc/bird.conf
|
||||||
notify:
|
notify:
|
||||||
- restart bird
|
- restart bird
|
||||||
|
|
||||||
- name: update ifcfg-lo config
|
- name: Add dummy interface and add IPs
|
||||||
template:
|
community.general.nmcli:
|
||||||
src: ifcfg-lo.j2
|
type: lo0
|
||||||
dest: /etc/sysconfig/network-scripts/ifcfg-lo
|
conn_name: 'lo0'
|
||||||
|
ip4: '{{ item.ip }}'
|
||||||
|
gw4: '{{ item.gw }}'
|
||||||
|
state: present
|
||||||
notify:
|
notify:
|
||||||
- restart loopback
|
- reload dummy interface
|
||||||
|
loop: '{{ bird.bgp.static|subelements(networks[ansible_fqdn]) }}'
|
||||||
|
|
||||||
- name: start bird service
|
- name: start bird service
|
||||||
systemd:
|
systemd:
|
||||||
|
Loading…
Reference in New Issue
Block a user