26 lines
483 B
YAML
26 lines
483 B
YAML
---
|
|
|
|
- name: Make sure test bridge does not exist before tests
|
|
command: ovs-vsctl del-br br-test
|
|
ignore_errors: yes
|
|
|
|
- name: Create bridge
|
|
openvswitch_bridge:
|
|
bridge: br-test
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == true"
|
|
|
|
- name: Create bridge again (idempotent)
|
|
openvswitch_bridge:
|
|
bridge: br-test
|
|
register: result
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == false"
|
|
|
|
- name: Tear down test bridge
|
|
command: ovs-vsctl del-br br-test
|