ansible-role-cloud-launcher/tasks/create_flavor.yml
Ian Wienand 01858ea602 Add region to task output
It's also very helpful to have the region in the task name when you
have multiple regions for a cloud.

Change-Id: I85c0769bb2332a91aa759fb90223ec812dc3e77d
2018-11-07 11:10:56 +11:00

14 lines
661 B
YAML

---
- name: "Processing flavor {{ item_flavor.name }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}"
os_nova_flavor:
cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}"
state: "{{ item_flavor.state|default(omit) }}"
name: "{{ item_flavor.name }}"
vcpus: "{{ item_flavor.vcpus }}"
ram: "{{ item_flavor.ram }}"
disk: "{{ item_flavor.disk }}"
swap: "{{ item_flavor.swap|default(omit) }}"
ephemeral: "{{ item_flavor.ephemeral|default(omit) }}"
rxtx_factor: "{{ item_flavor.rxtx_factor|default(omit) }}"
region_name: "{{ item_cloud.region_name|default(omit) }}"