mirror of
https://gitea.0xace.cc/ansible-galaxy/bird.git
synced 2025-01-18 20:12:20 +00:00
fix
This commit is contained in:
parent
5789b5558a
commit
df46625d26
@ -1,4 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
- name: Install network scripts
|
||||||
|
package:
|
||||||
|
name: network-scripts
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Install BIRD
|
- name: Install BIRD
|
||||||
package:
|
package:
|
||||||
name: bird
|
name: bird
|
||||||
@ -11,24 +16,31 @@
|
|||||||
notify:
|
notify:
|
||||||
- Reload BIRD
|
- Reload BIRD
|
||||||
|
|
||||||
- name: Add dummy interface and add IPs
|
- name: Update ifcfg-lo config
|
||||||
community.general.nmcli:
|
template:
|
||||||
type: dummy
|
src: ifcfg-lo.j2
|
||||||
conn_name: "{{ dummy_iface | default('dummy0') }}"
|
dest: /etc/sysconfig/network-scripts/ifcfg-lo
|
||||||
ip4: '{{ item.ip4 }}'
|
|
||||||
state: present
|
|
||||||
notify:
|
notify:
|
||||||
- Reload dummy interface
|
- Restart loopback
|
||||||
loop: |
|
|
||||||
[
|
#- name: Add dummy interface and add IPs
|
||||||
{% for protocol_static in bird.bgp.static %}
|
# community.general.nmcli:
|
||||||
{% for network in protocol_static['networks'][ansible_fqdn] %}
|
# type: dummy
|
||||||
{
|
# conn_name: "{{ dummy_iface | default('dummy0') }}"
|
||||||
"ip4": "{{ network['ip'] + '/' + network['mask_dash'] }}"
|
# ip4: '{{ item.ip4 }}'
|
||||||
},
|
# state: present
|
||||||
{% endfor %}
|
# notify:
|
||||||
{% endfor %}
|
# - Reload dummy interface
|
||||||
]
|
# loop: |
|
||||||
|
# [
|
||||||
|
# {% for protocol_static in bird.bgp.static %}
|
||||||
|
# {% for network in protocol_static['networks'][ansible_fqdn] %}
|
||||||
|
# {
|
||||||
|
# "ip4": "{{ network['ip'] + '/' + network['mask_dash'] }}"
|
||||||
|
# },
|
||||||
|
# {% endfor %}
|
||||||
|
# {% endfor %}
|
||||||
|
# ]
|
||||||
|
|
||||||
- name: Start BIRD service
|
- name: Start BIRD service
|
||||||
systemd:
|
systemd:
|
||||||
|
Loading…
Reference in New Issue
Block a user