ansible-role-cloud-launcher/tasks/create_quota.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

9 lines
399 B
YAML

---
- name: "Processing quotas for project {{ item_quota.name }} in {{ item_cloud.name }} {{ item_cloud.region_name|default('') }}"
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'