Moved Octavia image upload and CirrOS image identification to Ansible

Change-Id: Ief843310ce57a2d1062d86c54cd7ad6e0f705b68
This commit is contained in:
Jakob Meng
2022-12-06 19:56:55 +01:00
parent 133af96666
commit 85fa2bb2b6
7 changed files with 66 additions and 49 deletions

View File

@@ -1,4 +1,15 @@
---
- name: List all images
openstack.cloud.image_info:
cloud: "{{ cloud }}"
register: images
- name: Identify CirrOS image name
set_fact:
image_name: "{{ images.images|community.general.json_query(query)|first }}"
vars:
query: "[?starts_with(name, 'cirros')].name"
- name: Create test server
openstack.cloud.server:
cloud: "{{ cloud }}"