You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.. seealso::
:ref:`community.windows.win_domain_group_module`
The official documentation on the **community.windows.win_domain_group** module.
:ref:`ansible.windows.win_domain_membership_module`
The official documentation on the **ansible.windows.win_domain_membership** module.
:ref:`ansible.windows.win_group_module`
The official documentation on the **ansible.windows.win_group** module.
- name: Add a local and domain user to a local groupansible.windows.win_group_membership:
name: Remote Desktop Usersmembers:
- NewLocalAdmin
- DOMAIN\TestUserstate: present
- name: Remove a domain group and service user from a local groupansible.windows.win_group_membership:
name: Backup Operatorsmembers:
- DOMAIN\TestGroup
- NT AUTHORITY\SYSTEMstate: absent
- name: Ensure only a domain user exists in a local groupansible.windows.win_group_membership:
name: Remote Desktop Usersmembers:
- DOMAIN\TestUserstate: pure