Closed mesiq closed 1 year ago
This module is now deprecated in favour of microsoft.ad.membership. But win_domain_membership
and microsoft.ad.membership
is designed to join/unjoin a host from a domain and not manage the group membership of an AD group. You want microsoft.ad.group which replaces the win_domain_group_membership
module.
I've noticed I used wrong module. That must be some copy/paste error :-/
SUMMARY
when using state: present for adding an AD group into another AD the module fails with:
The documentation used: docu
ISSUE TYPE
COMPONENT NAME
win_domain_group_membership
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
ansible server: Red Hat Enterprise Linux 7.9 host server: Windows 2012R2
STEPS TO REPRODUCE
Note: domain_controllers is the dict with AD DCs where powershell AD module is installed - other modules - e.g. win_domain_group is working normally
EXPECTED RESULTS
Group is membership is added
ACTUAL RESULTS