01858ea602
It's also very helpful to have the region in the task name when you have multiple regions for a cloud. Change-Id: I85c0769bb2332a91aa759fb90223ec812dc3e77d
28 lines
1.4 KiB
YAML
28 lines
1.4 KiB
YAML
---
|
|
- block:
|
|
- os_image_facts:
|
|
cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}"
|
|
image: "{{ item_image.name }}"
|
|
- get_url:
|
|
url: "{{ item_image.download_image_url }}"
|
|
dest: "{{ item_image.download_image_dest|default(download_image_dest) }}"
|
|
force: "{{ item_image.download_image_force|default(download_image_force) }}"
|
|
when: not openstack_image
|
|
when: item_image.download_image_url is defined
|
|
- name: "Processing image {{ item_image.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}"
|
|
os_image:
|
|
cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}"
|
|
state: "{{ item_image.state|default(omit) }}"
|
|
name: "{{ item_image.name }}"
|
|
container_format: "{{ item_image.container_format|default(omit) }}"
|
|
disk_format: "{{ item_image.disk_format|default(omit) }}"
|
|
kernel: "{{ item_image.kernel|default(omit) }}"
|
|
ramdisk: "{{ item_image.ramdisk|default(omit) }}"
|
|
filename: "{{ item_image.filename|default(omit) }}"
|
|
min_disk: "{{ item_image.min_disk|default(omit) }}"
|
|
min_ram: "{{ item_image.min_ram|default(omit) }}"
|
|
owner: "{{ item_image.owner|default(omit) }}"
|
|
properties: "{{ item_image.properties|default(omit) }}"
|
|
is_public: "{{ item_image.is_public|default(omit) }}"
|
|
region_name: "{{ item_cloud.region_name|default(omit) }}"
|