🌐
GitHub
gist.github.com › manualbashing › dce01ff8121063435bedc121d179ae19
[Install ansible on Windows Server 2019] · GitHub
Add a new inbound rule to your ... sudo apt-get -y install python-pip python3-pip python-dev libffi-dev libssl-dev sudo pip install ansible...
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install ansible on windows
How to Install Ansible on Windows: 3 Methods
December 9, 2025 - This tutorial covers different ways to install Ansible on Windows. ... A machine running Windows. A user account with administrator privileges. Windows Subsystem for Linux (WSL) allows users to install different Linux distributions (such as Ubuntu) and use Linux apps and Bash command-line tools directly. This method does not require a virtual machine or dual-boot setup. Install Ansible with WSL by following the steps below:
Discussions

SQL Express Setup via WinRM
The SQL Server installer uses DPAPI to encrypt/decrypt data for the installation and typically in WinRM that is unavailable. There are a few ways around this; Use become on the task and that will run the process as the user you specify and can access their DPAPI functions name: run win_package with become win_package: ... become: yes become_method: runas vars: ansible_become_user: '{{ ansible_user }}' ansible_become_pass: '{{ ansible_password }}' Connect with CredSSP authentication over WinRM by setting ansible_winrm_transport: credssp Run the SQL installer using something like psexec with explicit credentials The first is the easiest as it will just work out of the box regardless of transport you are using to connect to the Windows hoset. The 2nd is an option if you have enabled CredSSP auth on the server. The final option really should be avoided as you loose out the benefits of running modules in Ansible and have to handle the idempotency yourself. More on reddit.com
🌐 r/ansible
6
1
February 2, 2020
Ansible for Windows - Openssh or WinRM?
If your machines already have WinRM configured, just use that. It works fine. One thing about OpenSSH is that I do not believe that it is natively available in the Windows Server OS until Server 2019. You can install it from GitHub on older versions of Windows, but the last time I tested that, it did not appear that the repo was updated very often, and it is not really supported by MS. However, it worked perfectly fine. More on reddit.com
🌐 r/ansible
5
1
February 28, 2023
Looking for CIS playbook For Windows Server 2019
There are some Googled resources, such as https://github.com/vijayram0690/ansible-cis-hardening-windows but from what I can tell most are not up to date. It might be a good place to start for developing your own, however. ( removed DISA STIG link - my mistake, that was Windows Chef content, not Ansible!) Good news is, if you create more up to date content, you could push it to GitHub or Gitlab for someone else in the community to use! To be honest, there’s a lot of work on compliance standards in bash and Ansible in the Compliance as Code project for Linux, but almost nothing for other platforms. More on reddit.com
🌐 r/ansible
2
1
December 1, 2020
Using Ansible for Bare Metal Windows Deployments

The cool thing about Server 2012 R2 and newer OS' is that WinRM/PowerShell Remoting is enabled by default and works out of the box with Ansible. This allows you do very minimal work to get Windows installed and then start configuring it straight away with Ansible.

You may also be interested in https://docs.ansible.com/ansible/devel/modules/psexec_module.html. It allows you to run commands on a Windows host using SMB/RPC and can be used to bootstrap older servers to a point where WinRM is ready and available.

More on reddit.com
🌐 r/ansible
4
2
September 5, 2018
🌐
ComputingForGeeks
computingforgeeks.com › home › automate windows server administration with ansible
Automate Windows Server Administration with Ansible [Guide]
March 22, 2026 - PowerShell 5.1 or later on the Windows hosts (included by default in Server 2019+) Install the required Python library and Ansible Windows collection on your control node:
🌐
Ansible
docs.ansible.com › projects › ansible › latest › os_guide › windows_usage.html
Using Ansible and Windows — Ansible Community Documentation
Ansible can be used to orchestrate a multitude of tasks on Windows servers. Below are some examples and info about common tasks. There are three main ways that Ansible can be used to install software:
🌐
4sysops
4sysops.com › home › blog › articles › install ansible on windows
Install Ansible on Windows – 4sysops
July 28, 2023 - While Linux-managed nodes need ... Ansible server bits run only on Linux. Thus, you'll need to set up WSL2 on your Windows Server control node before you can install Ansible....
🌐
Bobcares
bobcares.com › blog › windows-server-2019-administration-with-ansible
Windows Server 2019 Administration with Ansible
February 13, 2021 - Before going into the steps of ... server 2019 administration with Ansible, we will see what are the prerequisites for this. ... 1. Powershell version 3.0 or higher 2. .NET Framework 4.0 or higher 3. Windows Remote Management Listener or SSH (Cygwin) 4. Windows 7+, and server OSs including Windows Server 2008+ 5. Chocolatey 6. WSUS for updating OS packages and patching 7. Ansible or AWX · Chocolatey helps to install and generally ...
🌐
Automatesql
automatesql.com › blog › 3-ways-to-install-ansible-on-windows
3 Ways to Install Ansible on Windows
January 22, 2025 - Since Ansible is not directly supported on Windows, you can't just install it natively. But there are three approaches that let you keep your Windows machine without having to switch over to macOS or Linux.
Find elsewhere
🌐
Ansible
docs.ansible.com › projects › ansible › latest › os_guide › intro_windows.html
Managing Windows hosts with Ansible — Ansible Community Documentation
Support for each Windows version is tied to the extended support lifecycle of each operating system, which is typically 10 years from the date of release. Ansible is tested against the server variants of Windows but should still be compatible with the desktop variants like Windows 10 and 11.
🌐
Medium
medium.com › @redswitches › how-to-install-ansible-on-windows-1d26526fe40f
How to Install Ansible on Windows | Medium
July 31, 2024 - Learn how to install Ansible on Windows with this step-by-step guide. Start automating tasks now!
🌐
4sysops
4sysops.com › home › blog › articles › install ansible: setup for windows
Install Ansible: Setup for Windows – 4sysops
July 28, 2023 - Assuming you've got that test box set up, we'll now install Ansible. To do this, you’ll need to SSH into the Linux box. If using Vagrant, the VM can be connected to by typing "vagrant ssh".
🌐
Ansible
docs.ansible.com › projects › ansible › latest › collections › ansible › windows › win_updates_module.html
ansible.windows.win_updates module – Download and install Windows updates — Ansible Community Documentation
As Windows Updates can restart the network adapter it is recommended to set -o ServerAliveInterval=30 and disable control master in ansible_ssh_args to ensure the client can handle a network reset. See the examples showing one way this can be set. By default the module will start a background process using the Task Scheduler on Windows. If the Task Scheduler is unavailable, unreliable, or does not work, run the task with become. ... Manage packages using chocolatey. ... Installs and uninstalls Windows Features on Windows Server.
🌐
RDR-IT
rdr-it.com › tutorials › softwares › ansible › ansible: installation, configuration and use with windows and linux
Ansible: installation, configuration and use with Windows and Linux - RDR-IT
July 14, 2021 - We will now proceed to the installation of pywinrm[credssp], which will allow us to connect to our Windows servers. ... If you also have the ERROR error: pyopenssl 20.0.1 has requirement cryptography> = 3.2, but you’ll have cryptography 2.8 which is incompatible, here’s how to install the correct version of cryptography. ... In order to be able to connect in SSH with a username / password pair, it is necessary to install SSHPASS. ... Once installed, open the file /etc/ansible/ansible.cfg.
🌐
TutorialsPoint
tutorialspoint.com › article › how-to-install-and-configure-ansible-on-windows
How to Install and Configure Ansible on Windows?
March 17, 2026 - In the same PowerShell window, run the following command ... This command will download and install Ansible and its dependencies.
🌐
UltaHost
ultahost.com › knowledge-base › install-ansible-on-windows
How to Install Ansible on Windows | Ultahost Knowledge Base
June 8, 2024 - However, you can use Windows Subsystem for Linux (WSL) or a virtual machine to run Ansible on a Windows system. WSL is a compatibility layer for running Linux binary executables natively on Windows 10 and Windows Server 2019...
🌐
Ansible
docs.ansible.com › ansible › 7 › os_guide › windows_setup.html
Setting up a Windows Host — Ansible Documentation
June 26, 2023 - With Ansible you can generally ... including Windows 8.1, and 10, and server OSs including Windows Server 2012, 2012 R2, 2016, 2019, and 2022. You need to install PowerShell 3.0 or newer and at least .NET 4.0 on the Windows host....
🌐
TechTarget
techtarget.com › searchwindowsserver › tutorial › How-to-start-using-Ansible-for-Windows-management
How to use Ansible with Windows for server management | TechTarget
If you installed the full Ansible package, then you can see the version of the curated collections by entering: ... Ansible generally supports all Windows versions with Microsoft backing. Currently, this includes Windows Server 2016, 2019 and 2022;
🌐
Spacelift
spacelift.io › blog › how-to-install-ansible
How to Install Ansible on Ubuntu, RHEL, macOS & CentOS
For this tutorial, we will cover installing Ansible on a Windows OS using WSL. At the time of this article, Ansible only supports Windows Server 2019 (manual) and 2022 WSL, Windows Desktop 10, and 11 to run as an Ansible Control node.
Published   October 10, 2025