community.general
community.general copied to clipboard
ipa_group: Doesn't append users to an existing group if external: no
Summary
I've tested my playook multiple times. I iterate over a list of users. In the first run the group will be created and users will be added to the user, however if you run the playbook afterwards with an extended lists of users, the new users will not be added and the run will fail with the msg: "response group_mod: no modifications to be performed". In an earlier version of the playbook i used a loop to append users to the group, where the first user was added, but the run failed at the second iteration of the loop.
Issue Type
Bug Report
Component Name
community.general.ipa_group
Ansible Version
$ ansible --version
ansible [core 2.13.2]
Community.general Version
$ ansible-galaxy collection list community.general
mmunity.general 5.3.0
Configuration
$ ansible-config dump --only-changed
OS / Environment
Red Hat Enterprise Linux 8.5 (Ootpa)
Steps to Reproduce
- name: erstelle Usergruppe für die neuen User
tags:
- usergruppe community.general.ipa_group: name: "{{ verfahren_all }}" nonposix: yes external: no description: "example {{ verfahren }}" user: "{{ user | selectattr('var', 'eq', 'nein') | map(attribute='id') | list }}" group: "{{ verfahren }}" append: yes state: present ipa_host: "{{ ipa_host }}" ipa_user: "{{ ipa_admin_username }}" ipa_pass: "{{ ipa_admin_password }}" delegate_to: "{{ ipa_host }}"
Expected Results
If i run the tasks like in the example above multiple times,, i thought that if i add new users to the list of {{ user }}, that they would be added to an already existing group
Actual Results
FAILED! => {"changed": false, "msg": "response group_mod: no modifications to be performed"} instead
Code of Conduct
- [X] I agree to follow the Ansible Code of Conduct
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.
cc @Akasurde @Nosmoht @fxfitz @justchris1 click here for bot help
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.