From 4ee103f2a834125577da7f8406e2475e2c8991db Mon Sep 17 00:00:00 2001 From: Ian Watson Date: Tue, 28 Oct 2025 12:06:51 +0000 Subject: [PATCH] Adding user_domain and project_domain options and suitable fallbacks/omission. This requires openstack.cloud 2.5.0 --- galaxy.yml | 2 +- roles/os_projects/tasks/users.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index 41c47e4..1a0387e 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -12,7 +12,7 @@ tags: - cloud - openstack dependencies: - "openstack.cloud": ">=2.1.0" + "openstack.cloud": ">=2.5.0" "community.general": ">=8.2.0" repository: https://github.com/stackhpc/ansible-collection-openstack documentation: https://github.com/stackhpc/ansible-collection-openstack/blob/main/README.md diff --git a/roles/os_projects/tasks/users.yml b/roles/os_projects/tasks/users.yml index 1d7347e..ab0d256 100644 --- a/roles/os_projects/tasks/users.yml +++ b/roles/os_projects/tasks/users.yml @@ -35,6 +35,8 @@ user: "{{ item.0.name }}" project: "{{ project.name }}" role: "{{ item.1 }}" + user_domain: "{{ project.user_domain | default(omit, true) }}" + project_domain: "{{ project.project_domain | default(omit, true) }}" state: present with_subelements: - "{{ project.users }}"