We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Re-executing the keycloak_realm role with renamed roles does not reassign users to new role names. Also renamed roles are not purged.
ansible [core 2.13.3]
1.1.0
Execute with following:
- include_role: name: sso_realm apply: delegate_to: "{{ ansible_play_hosts | first }}" run_once: true vars: sso_admin_password: "{{ admin_pass }}" sso_realm: addressbook sso_clients: - name: addressbook client_id: addressbook roles: - admin - user realm: addressbook public_client: False web_origins: '+' users: - username: flangeadmin email: [email protected] firstName: Flange lastName: Admin password: password client_roles: - client: addressbook role: admin realm: addressbook - client: addressbook role: user realm: addressbook - username: flangeuser email: [email protected] firstName: Flange lastName: User password: password client_roles: - client: addressbook role: user realm: addressbook
then execute again with:
- include_role: name: sso_realm apply: delegate_to: "{{ ansible_play_hosts | first }}" run_once: true vars: sso_admin_password: "{{ admin_pass }}" sso_realm: addressbook sso_clients: - name: addressbook client_id: addressbook roles: - flangeadmin - flangeuser realm: addressbook public_client: False web_origins: '+' users: - username: flangeadmin email: [email protected] firstName: Flange lastName: Admin password: password client_roles: - client: addressbook role: flangeadmin realm: addressbook - client: addressbook role: flangeuser realm: addressbook - username: flangeuser email: [email protected] firstName: Flange lastName: User password: password client_roles: - client: addressbook role: flangeuser realm: addressbook
ie. rename the roles admin->flangeadmin user->flangeuser and reassign flangeadmin user to flangeadmin role (same for flangeuser)
flangeadmin has roles [ flangeadmin, flangeuser] flangeuser has role [ flangeuser ]
roles admin and user are purged
flangeadmin has roles [ admin, user] flangeuser has role [ user ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ISSUE TYPE
SUMMARY
Re-executing the keycloak_realm role with renamed roles does not reassign users to new role names. Also renamed roles are not purged.
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
Execute with following:
then execute again with:
ie. rename the roles admin->flangeadmin user->flangeuser and reassign flangeadmin user to flangeadmin role (same for flangeuser)
EXPECTED RESULTS
flangeadmin has roles [ flangeadmin, flangeuser]
flangeuser has role [ flangeuser ]
roles admin and user are purged
ACTUAL RESULTS
flangeadmin has roles [ admin, user]
flangeuser has role [ user ]
The text was updated successfully, but these errors were encountered: