8000 Fix loop label syntax #2 by jovial · Pull Request #61 · stackhpc/ansible-collection-openstack · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix loop label syntax #2 #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: stackhpc
name: openstack
version: 0.5.1
version: 0.5.2
readme: README.md
authors:
- StackHPC Ltd
Expand Down
14 changes: 3 additions & 11 deletions roles/os_projects/tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
vars:
domain_is_id: "{{ project.user_domain in os_projects_domain_to_id.values() }}"
loop_control:
label:
project: "{{ project.name }}"
user: "{{ item.name }}"
label: "{{ project.name }}: {{ item.name }}"

- name: Ensure users have required project roles
openstack.cloud.role_assignment:
Expand All @@ -41,10 +39,7 @@
- skip_missing: true
environment: "{{ os_projects_environment }}"
loop_control:
label:
project: "{{ project.name }}"
user: "{{ item.0.name }}"
role: "{{ item.1 }}"
label: "{{ project.name }}: {{ item.0.name }}: {{ item.1 }}"

- name: Ensure users have required domain roles
openstack.cloud.role_assignment:
Expand All @@ -65,7 +60,4 @@
vars:
domain_is_id: "{{ project.user_domain in os_projects_domain_to_id.values() }}"
loop_control:
label:
domain: "{{ project.user_domain }}"
user: "{{ item.0.name }}"
role: "{{ item.1 }}"
label: "{{ project.user_domain }}: {{ item.0.name }}: {{ item.1 }}"
0