Ricardo Carrillo Cruz 126a547f04 Add quotas support for the cloud launcher
While we get a proper os_quota module in Ansible, let's just workaround
it with good old openstack client.

Change-Id: I4036359b09f5bb534143dcb18abe57586b6c8740
2016-10-14 21:01:39 +00:00

9 lines
333 B
YAML

---
- name: "Processing quotas for project {{ item_quota.name }}"
command: openstack quota set --"{{ item.key }}" "{{ item.value }}" "{{ item_quota.name }}"
environment:
OS_CLOUD: "{{ item_cloud.name }}"
OS_REGION_NAME: "{{ item_cloud.region_name|default('')}}"
with_dict: "{{ item_quota }}"
when: item.key != 'name'