Merge "Update user role assignments"

This commit is contained in:
Zuul 2024-11-16 09:48:40 +00:00 committed by Gerrit Code Review
commit 935a96b548
2 changed files with 8 additions and 3 deletions

View File

@ -107,15 +107,16 @@
module_args:
user: "{{ item.user }}"
role: "{{ item.role }}"
project: "{{ item.project }}"
domain: "{{ service_ks_register_domain }}"
project: "{{ item.project | default(omit) }}"
domain: "{{ item.domain | default(omit) }}"
system: "{{ item.system | default(omit) }}"
region_name: "{{ service_ks_register_region_name }}"
auth: "{{ service_ks_register_auth }}"
interface: "{{ service_ks_register_interface }}"
cacert: "{{ service_ks_cacert }}"
with_items: "{{ service_ks_register_users + service_ks_register_user_roles }}"
loop_control:
label: "{{ item.user }} -> {{ item.project }} -> {{ item.role }}"
label: "{{ item.user }} -> {{ item.project | default(item.domain) | default(item.system) }} -> {{ item.role }}"
register: service_ks_register_result
until: service_ks_register_result is success
retries: "{{ service_ks_register_retries }}"

View File

@ -0,0 +1,4 @@
---
features:
- |
User role assignments can now customise domain and system scopes.