This commit is contained in:
ace 2021-10-25 15:30:39 +03:00
parent da68b600dd
commit 059e9a9c7d
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0
2 changed files with 4 additions and 4 deletions

View File

@ -16,4 +16,4 @@
ifdown lo ; ifup lo
- name: Reload dummy interface
command: nmcli conn up lo0
command: nmcli conn up {{ dummy_iface | default('dummy0') }}

View File

@ -9,16 +9,16 @@
src: bird.conf.j2
dest: /etc/bird.conf
notify:
- reload bird
- Reload bird
- name: Add dummy interface and add IPs
community.general.nmcli:
type: dummy
conn_name: 'lo0'
conn_name: "{{ dummy_iface | default('dummy0') }}"
ip4: '{{ item.ip4 }}'
state: present
notify:
- reload dummy interface
- Reload dummy interface
loop: |
[
{% for protocol_static in bird.bgp.static %}