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.

Managing Windows

Managing Windows

In this video, we'll discuss how to use Ansible for managing Windows. So this is about setting up Windows as a managed host. Ansible can manage Windows 7 and newer. That means each relevant Windows version that still is around can be managed by Ansible. And even older versions can be managed, but that's not officially supported. If you want to manage Windows, you need to make sure that you install the appropriate content collection. Otherwise, you don't have the modules that it takes to manage your Windows environment. Apart from that, you need to prepare the Windows host. So ensure there is a Windows user with administrator privileges and as that user, you create an Ansible user also with administrator privileges. That is to make the remote connection from the Ansible control host to the Windows machine. Then you can open a PowerShell, starting with WinRM quick config and you can change a couple of settings. I put them on the next slide to make configuration of Windows possible. Here…

Contents