mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
462 B
YAML
26 lines
462 B
YAML
7 years ago
|
---
|
||
|
|
||
|
- name: Make sure test bridge does not exist before tests
|
||
|
command: ovs-vsctl del-br br-test
|
||
|
|
||
|
- 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
|