mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-03-26 21:43:02 +00:00
Change-Id: I7db759f716c1154cb0dd30e240af3a0420efab8f Signed-off-by: Freerk-Ole Zakfeld <fzakfeld@scaleuptech.com>
24 lines
421 B
YAML
24 lines
421 B
YAML
---
|
|
- openstack.cloud.trait:
|
|
cloud: "{{ cloud }}"
|
|
state: present
|
|
id: "{{ trait_name }}"
|
|
delegate_to: localhost
|
|
register: item
|
|
|
|
- assert:
|
|
that:
|
|
- "'name' in item.trait"
|
|
- "item.trait.id == trait_name"
|
|
|
|
- openstack.cloud.trait:
|
|
cloud: "{{ cloud }}"
|
|
state: absent
|
|
id: "{{ trait_name }}"
|
|
delegate_to: localhost
|
|
register: item
|
|
|
|
- assert:
|
|
that:
|
|
- "'trait' not in item"
|