ansible.builtin.win_group (v2.9.27) — module

Add and remove local groups

| "added in version" 1.7 of ansible.builtin"

Authors: Chris Hoffman (@chrishoffman)

stableinterface | supported by core

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Add and remove local groups.

For non-Windows targets, please use the M(group) module instead.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a new group
  win_group:
    name: deploy
    description: Deploy Group
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove a group
  win_group:
    name: deploy
    state: absent

Inputs

    
name:
    description:
    - Name of the group.
    required: true
    type: str

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Create or remove the group.
    type: str

description:
    description:
    - Description of the group.
    type: str

See also