Member-only story

Remove Windows Registry path or key on Windows-like systems — Ansible module win_regedit

How to automate the deletion of the Windows Registry “Test” path with one key “hello” under a specific hive Windows-like systems with Ansible Playbook using win_regedit module.

Luca Berton
4 min readMar 17, 2022

How to Remove Windows Registry key on Windows-like systems with Ansible?

Changing registry values manually can be time-consuming and error-prone.
Ansible includes built-in capabilities for managing individual key-value pairs in an idempotent way.
I’m going to show you a live demo and some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.

Ansible remove Windows Registry on Windows-like systems

  • `ansible.windows.win_regedit`
  • Get information about Windows registry keys

Let’s talk about the Ansible module `win_regedit`.

--

--

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