Skip to content

Commit bcffe0e

Browse files
authored
Merge pull request #20 from FrankGiesecke/17-add-interface-vlan
Avoid error when using vlan interface annotaion
2 parents 9e255f8 + f25dad2 commit bcffe0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
- name: restart devices
7272
ansible.builtin.shell: >
7373
[ -n "$(ifquery --list --exclude=lo)" ] && udevadm settle
74-
&& ip addr flush {{ item.item.device }}
74+
&& (ip addr flush {{ item.item.device }} || true)
7575
&& (ifdown {{ item.item.device }} --exclude=lo || true) && ifup {{ item.item.device }} --exclude=lo
7676
when:
7777
- item.changed

0 commit comments

Comments
 (0)