mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-05-07 13:53:15 +00:00
Add support to setting image tags
Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/783849 Change-Id: Idee1f3c16cb07db39395b434d406628a9c5b152d
This commit is contained in:
committed by
Dmitriy Rabotyagov
parent
daaa6bf561
commit
6b3bf3bba0
@@ -1 +1,4 @@
|
||||
image_name: ansible_image
|
||||
image_tags:
|
||||
- test
|
||||
- ansible
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
name: "{{ image_name }}"
|
||||
filename: "{{ tmp_file.stdout }}"
|
||||
disk_format: raw
|
||||
tags: "{{ image_tags }}"
|
||||
register: image
|
||||
|
||||
- name: Get details of created image
|
||||
@@ -25,6 +26,7 @@
|
||||
assert:
|
||||
that:
|
||||
- "image_info_result.openstack_image.name == image_name"
|
||||
- "image_info_result.openstack_image.tags | sort == image_tags | sort"
|
||||
|
||||
- name: Delete raw image (defaults)
|
||||
openstack.cloud.image:
|
||||
|
||||
Reference in New Issue
Block a user