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

10 lines
499 B
YAML

---
- name: "Processing user role {{ item_user_role.role }} for {{ item_cloud.oscc_cloud|default(item_cloud.name) }} {{ item_cloud.region_name|default('') }}"
os_user_role:
cloud: "{{ item_cloud.oscc_cloud|default(item_cloud.name) }}"
state: "{{ item_user_role.state|default(omit) }}"
role: "{{ item_user_role.role }}"
domain: "{{ item_user_role.domain|default(omit) }}"
project: "{{ item_user_role.project|default(omit) }}"
user: "{{ item_user_role.user|default(omit) }}"