20 lines
613 B
YAML
20 lines
613 B
YAML
---
|
|
#
|
|
# Add flavors to OpenStack Cloud
|
|
#
|
|
|
|
# Ignore errors here incase the flavors already exist.
|
|
- name: Add flavors to overcloud
|
|
shell: . {{ overcloudrc }}; openstack flavor create {{item.name}} auto {{item.memory}} {{item.disk}} {{item.cpu}}
|
|
with_items: "{{browbeat_flavors}}"
|
|
ignore_errors: true
|
|
when: not is_rhoso_deployment
|
|
|
|
- name: Add flavors to overcloud
|
|
shell: |
|
|
export OS_CLOUD=default
|
|
openstack flavor create --ram {{ item.memory }} --disk {{ item.disk }} --vcpus {{ item.cpu }} {{ item.name }}
|
|
with_items: "{{ browbeat_flavors }}"
|
|
ignore_errors: true
|
|
when: is_rhoso_deployment
|