Member-only story

Remove a local group on Windows-like systems — Ansible module win_group

How to automate the removal of a local user “accounting” on Windows-like systems using the Ansible module win_group.

Luca Berton
4 min readMar 21, 2022

How to Remove a local group on Windows-like systems with Ansible?
I’m going to show you a live demo with some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.

Note: Be very careful about typing the right group name because the delete operation is irreversible!

Ansible Remove a group on Windows-like systems

  • `ansible.windows.win_group`
  • Add or remove groups

Today we’re talking about Ansible module `win_group`.

The full name is `ansible.windows.win_group `, which means that is part of the collection of modules specialized to interact with Windows target host.

It’s a module pretty stable and out for years.

It works in Windows and Windows Server operating systems.

--

--

Luca Berton
Luca Berton

Written by Luca Berton

I help creative Automation DevOps, Cloud Engineer, System Administrator, and IT Professional to succeed with Ansible Technology to automate more things everyday

No responses yet