While running this playbook ssh needs to be enabled on a Linux client, and WinRM on a Windows client. WinRM can be enabled with the PowerShell script Run a playbook using ansible-playbook playbook.yml -i inventory -k