Ansible Windows Modules
In this chapter, we will look at the ever-growing collection of built-in Ansible modules that support and interact with Windows-based servers; coming from an almost exclusively macOS and Linux background, it seemed odd to be using a tool not natively supported on Windows to manage Windows.
By the end of our time in this chapter, I am sure you will agree that looking at the options available, the Ansible developers have made managing Windows Server workloads with a playbook as seamless and familiar as possible.
In this chapter, we will learn how to do the following:
- Launch a Windows server instance in Microsoft Azure
- Enable features in Windows
- Create users
- Install third-party packages using Chocolatey
The chapter covers the following topics:
- Launching a Windows server in Azure
- Ansible preparation
- The Windows Playbook roles
- Running the Playbook