mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-07-25 17:24:28 +00:00
We do no longer return computed values here. Note, this breaks backward compatibility because we do no longer return the location attribute. It was never documenteed anyway. Change-Id: I11af9486a6a284d1756380548fca22435c43765a
23 lines
708 B
YAML
23 lines
708 B
YAML
---
|
|
|
|
- name: Get nova compute services info
|
|
openstack.cloud.compute_service_info:
|
|
cloud: "{{ cloud }}"
|
|
binary: "nova-compute"
|
|
register: result
|
|
failed_when: "result.openstack_compute_services | length <= 0"
|
|
|
|
- name: Assert fields
|
|
assert:
|
|
that:
|
|
- '["availability_zone", "binary", "disabled_reason", "is_forced_down",
|
|
"host", "name", "state", "status", "updated_at", "id"] |
|
|
difference(result.openstack_compute_services.0.keys()) | length == 0'
|
|
|
|
- name: Get nova conductor services info
|
|
openstack.cloud.compute_service_info:
|
|
cloud: "{{ cloud }}"
|
|
binary: "nova-conductor"
|
|
register: result
|
|
failed_when: "result.openstack_compute_services | length <= 0"
|