ansible.windows.win_group module – Add and remove local groups
Note
This module is part of the ansible.windows collection (version 2.5.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install ansible.windows
.
To use it in a playbook, specify: ansible.windows.win_group
.
Synopsis
Add and remove local groups.
For non-Windows targets, please use the ansible.builtin.group module instead.
Parameters
Parameter |
Comments |
---|---|
Description of the group. |
|
Name of the group. |
|
Create or remove the group. Choices:
|
See Also
See also
- ansible.builtin.group
Add or remove groups.
- community.windows.win_domain_group
Creates, modifies or removes domain groups.
- ansible.windows.win_group_membership
Manage Windows local group membership.
Examples
- 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