--- - name: Ensure all-in-one network bridge interface exists (RedHat) command: "{{ item }}" become: true with_items: - "ip l set {{ bridge_interface }} up" - "ip a add {{ bridge_ip }}/{{ bridge_prefix }} dev {{ bridge_interface }}" # NOTE(mgoddard): CentOS 8 removes interfaces from their bridge during # ifdown, and removes the bridge if there are no interfaces left. When # Kayobe bounces veth links plugged into the bridge, it causes the # bridge which has the IP we are using for SSH to be removed. Use a # dummy interface. - "ip l set {{ bridge_port_interface }} up" - "ip l set {{ bridge_port_interface }} master {{ bridge_interface }}"