fabric: reload switchd before reloading interfaces

Don’t want to bring up a nonexisting interface.
This commit is contained in:
Timotej Lazar 2023-12-29 09:01:01 +01:00
parent 0d24f9fdc7
commit 6fd5432b69

View file

@ -1,14 +1,14 @@
- name: reload interfaces
command:
cmd: ifreload -a
when: "'handler' not in ansible_skip_tags"
- name: reload switchd
service:
name: switchd
state: reloaded
when: "'handler' not in ansible_skip_tags"
- name: reload interfaces
command:
cmd: ifreload -a
when: "'handler' not in ansible_skip_tags"
- name: restart frr
service:
name: frr