Add and remove local groups
- Add and remove local groups.
- For non-Windows targets, please use the :ref:`ansible.builtin.group <ansible.builtin.group_module>` module instead.
Parameter | Choices/Defaults | Comments |
---|---|---|
description
string
|
Description of the group.
|
|
name
string
/ required
|
Name of the group.
|
|
state
string
|
|
Create or remove the group.
|
.. seealso:: :ref:`ansible.builtin.group_module` The official documentation on the **ansible.builtin.group** module. :ref:`community.windows.win_domain_group_module` The official documentation on the **community.windows.win_domain_group** module. :ref:`ansible.windows.win_group_membership_module` The official documentation on the **ansible.windows.win_group_membership** module.
- name: Create a new group
ansible.windows.win_group:
name: deploy
description: Deploy Group
state: present
- name: Remove a group
ansible.windows.win_group:
name: deploy
state: absent
- Chris Hoffman (@chrishoffman)