freeipa / ansible-freeipa

Ansible roles and modules for FreeIPA
GNU General Public License v3.0
482 stars 230 forks source link

ipagroup: Add support for renaming groups #1178

Closed rjeffman closed 7 months ago

rjeffman commented 8 months ago

FreeIPA suports renaming groupobjects with the CLI parameter "rename", and this parameter was missing in ansible-freeipa ipagroup module.

This patch adds support for a new state 'renamed' and the 'rename' parameter.

Tests were updated to cope with the changes.

Fixes #1103

t-woerner commented 7 months ago

There is no example for rename in the EXAMPLES section.

t-woerner commented 7 months ago

Is it needed to ensure that there will not be a name conflict? Several renames to the same name or a rename to an already existing name?

t-woerner commented 7 months ago

Is it needed to ensure that there will not be a name conflict? Several renames to the same name or a rename to an already existing name?

New issue for this: https://github.com/freeipa/ansible-freeipa/issues/1194

rjeffman commented 7 months ago

Fixed issues found and added proper tests to rename multiple groups at once.