![Ricardo Carrillo Cruz](/assets/img/avatar_default.png)
While we get a proper os_quota module in Ansible, let's just workaround it with good old openstack client. Change-Id: I4036359b09f5bb534143dcb18abe57586b6c8740
9 lines
333 B
YAML
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'
|