bird/handlers/main.yaml

23 lines
455 B
YAML

---
- name: Restart bird
systemd:
name: "{{ bird_unit_name }}"
state: restarted
daemon_reload: yes
when:
- not bird_setup.changed
- not bird_enable_and_start.changed
- name: Reload bird
systemd:
name: "{{ bird_unit_name }}"
state: reloaded
daemon_reload: yes
- name: Restart loopback
shell: |
ifdown lo ; ifup lo
- name: Reload dummy interface with nmcli
command: nmcli conn up {{ bird_network_nm_iface }}