ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
814 stars 1.49k forks source link

keycloak_user: setting group state to absent doesn't remove group from user #7433

Open ziermmar opened 10 months ago

ziermmar commented 10 months ago

Summary

When I try to remove a group membership from a user, it doesn't work

Issue Type

Bug Report

Component Name

keycloak_user

Ansible Version

$ ansible --version
ansible [core 2.13.8]

Community.general Version

$ ansible-galaxy collection list community.general
community.general 7.5.0  

OS / Environment

Ubuntu 20.04

Steps to Reproduce

    - name: Add user to groups
      community.general.keycloak_user:
        username: user1
        groups:
          - name: group1
            state: present
          - name: group2
            state: present
        state: present

    - name: Remove user from group2
      community.general.keycloak_user:
        username: user1
        groups:
          - name: group1
            state: present
          - name: group2
            state: absent
        state: present

Expected Results

User is member of group1, but not group2

Actual Results

User is member of both groups

Code of Conduct

ansibullbot commented 10 months ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 10 months ago

cc @eikef @elfelip @mattock @ndclt click here for bot help

ansibullbot commented 1 month ago

cc @thomasbach-dev click here for bot help