Ansible Playbook (Linux - Windows) Using Winrm
Ansible Playbook (Linux - Windows) Using Winrm
Ansible Playbook (Linux - Windows) Using Winrm
5. Open Windows Powershell and Check for version. It is above 3.0, so we can configure
winrm now (use Get-Host command to check version)
6. Configure Winrm
6.1 Winrm Memory Hotfix
Goto this link
https://github.com/jborean93/ansible-windows/blob/master/scripts/Install-WMF3Hotfix.ps1
Copy the code and save it in Windows Server Machine Desktop as Install-
WMF3Hotfix.ps1
Winrm uses Port 5986 for HTTPS & 5985 for HTTP
(Note: Replace PRIVATEIP & PASSWORD with your Windows Server 2019
Instance Credentials)
- hosts: all
tasks:
- name: Install git
win_chocolatey:
name: git
state: present
10. Execute Playbook to install Git and Notepad++ in Windows Server 2019
ansible-playbook win.yml
11 . Check the Installed Git & Notepad++ in Windows Server 2019