Skip to content

Commit

Permalink
Make user password optional
Browse files Browse the repository at this point in the history
This appears to be supported by openstack.cloud.identity_user [1].

[1] https://docs.ansible.com/ansible/latest/collections/openstack/cloud/identity_user_module.html
  • Loading branch information
priteau committed Sep 6, 2024
1 parent 233a0c9 commit a2726be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion roles/os_projects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ Each item should be a dict containing the following items:
- `name`: The name of the user.
- `description`: User name/description (optional)
- `email`: User email address (optional)
- `password`: The user's password. This is not updated after creation.
- `password`: The user's password (optional). This is not updated after
creation.
- `roles`: Optional list of roles to assign to the user in the project.
- `domain_roles`: Optional list of roles to assign to the user in the user
domain.
Expand Down
2 changes: 1 addition & 1 deletion roles/os_projects/tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
name: "{{ item.name }}"
description: "{{ item.description | default(omit) }}"
email: "{{ item.email | default(omit) }}"
password: "{{ item.password }}"
password: "{{ item.password | default(omit) }}"
default_project: "{{ project.name }}"
domain: "{{ domain_is_id | ternary(project.user_domain, os_projects_domain_to_id[project.user_domain]) }}"
state: present
Expand Down

0 comments on commit a2726be

Please sign in to comment.