A lightweight Ansible-based automation for deploying SQL Server patches across Windows environments, including AlwaysOn Availability Groups.
No custom modules required โ uses native Ansible capabilities.
- ๐ ๏ธ Automated SQL Patching: Deploy updates to standalone SQL servers and AlwaysOn clusters.
- ๐ Cluster-Aware: Automatically detects and patches all nodes in an AlwaysOn cluster.
- โ๏ธ Cloud-Ready: Compatible with Ansible Automation Platform (AAP) and AWX.
- ๐ Secure: Uses WinRM over HTTPS (port 5986) with NTLM authentication.
- WinRM Configuration
Ensure WinRM is properly configured on all target Windows systems. - Ansible Setup
- Ansible 2.10+ (tested with AAP/AWX)
ansible.windowscollection installed:ansible-galaxy collection install ansible.windows
ansible_host: 192.168.1.20
ansible_connection: winrm
ansible_winrm_transport: ntlm
ansible_port: '5986'
- You have knowledge on Ansible/ AWX
- You understand how the SQL patch (CU) works
- I am installing the patch using Chocolatey which is residing on an Artifactory repo