win_domain_group_membership – Manage Windows domain group membership¶
New in version 2.8.
Parameters¶
See Also¶
See also
- win_domain_user – Manages Windows Active Directory user accounts
The official documentation on the win_domain_user module.
- win_domain_group – Creates, modifies or removes domain groups
The official documentation on the win_domain_group module.
Examples¶
- name: Add a domain user/group to a domain group
win_domain_group_membership:
name: Foo
members:
- Bar
state: present
- name: Remove a domain user/group from a domain group
win_domain_group_membership:
name: Foo
members:
- Bar
state: absent
- name: Ensure only a domain user/group exists in a domain group
win_domain_group_membership:
name: Foo
members:
- Bar
state: pure
- name: Add a computer to a domain group
win_domain_group_membership:
name: Foo
members:
- DESKTOP$
state: present
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]
Authors¶
Marius Rieder (@jiuka)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.