bird/handlers/main.yaml

23 lines
455 B
YAML
Raw Permalink Normal View History

2021-10-25 09:53:52 +00:00
---
- name: Restart bird
2021-10-25 09:53:52 +00:00
systemd:
name: "{{ bird_unit_name }}"
2021-10-25 09:53:52 +00:00
state: restarted
daemon_reload: yes
when:
- not bird_setup.changed
- not bird_enable_and_start.changed
2021-10-25 09:53:52 +00:00
- name: Reload bird
2021-10-25 12:26:23 +00:00
systemd:
name: "{{ bird_unit_name }}"
state: reloaded
2021-10-25 12:26:23 +00:00
daemon_reload: yes
- name: Restart loopback
2021-10-25 12:58:37 +00:00
shell: |
ifdown lo ; ifup lo
2021-10-25 11:55:25 +00:00
2021-10-26 21:33:38 +00:00
- name: Reload dummy interface with nmcli
command: nmcli conn up {{ bird_network_nm_iface }}