mirror of
				https://gitea.0xace.cc/ansible-galaxy/bird.git
				synced 2025-11-03 15:07:25 +00:00 
			
		
		
		
	fix el8
This commit is contained in:
		@@ -8,3 +8,7 @@
 | 
			
		||||
- name: restart loopback
 | 
			
		||||
  shell: |
 | 
			
		||||
    ifdown lo ; ifup lo
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- name: reload dummy interface
 | 
			
		||||
  command: nmcli conn up lo0
 | 
			
		||||
 
 | 
			
		||||
@@ -1,22 +1,26 @@
 | 
			
		||||
---
 | 
			
		||||
- name: install bird
 | 
			
		||||
- name: Install bird
 | 
			
		||||
  package: 
 | 
			
		||||
    name: bird
 | 
			
		||||
    state: present
 | 
			
		||||
 | 
			
		||||
- name: add bird config
 | 
			
		||||
- 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
 | 
			
		||||
- name: Add dummy interface and add IPs
 | 
			
		||||
  community.general.nmcli:
 | 
			
		||||
    type: lo0
 | 
			
		||||
    conn_name: 'lo0'
 | 
			
		||||
    ip4: '{{ item.ip }}'
 | 
			
		||||
    gw4: '{{ item.gw }}'
 | 
			
		||||
    state: present
 | 
			
		||||
  notify:
 | 
			
		||||
    - restart loopback
 | 
			
		||||
    - reload dummy interface
 | 
			
		||||
  loop: '{{ bird.bgp.static|subelements(networks[ansible_fqdn]) }}'
 | 
			
		||||
 | 
			
		||||
- name: start bird service
 | 
			
		||||
  systemd:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user