From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Using playbooks to manage Windows

Using playbooks to manage Windows - Ansible Tutorial

From the course: Ansible: From Basics to Guru by Pearson

Using playbooks to manage Windows

In this video, we are going to explore a few tasks that you can do on Windows. First, let's have a look at some useful Windows modules. There is WinCommand. WinCommand allows you to run an arbitrary command on Windows. As all command modules, it's not idempotent. WinShell allows you to run commands through PowerShell. There's WinPackage, which is what you use to install software packages from MSI files or executable packages. There is WinFeature, which manages system roles or Windows features. WinUpdate, which allows you to update Windows or WinReboot for rebooting and WinFormat for formatting storage devices. And of course, there are many more. I have two simple playbooks that show you how to perform essential tasks on Windows. Let's go check it out. So before having a look at the actual playbooks, I want to show you Ansible doc minus L, followed by grep starting win. There you can see there is really an impressive list of modules available for Windows, no less than 105. It's not my…

Contents