Hi Anjana Where exactly on you putting those varibales [win:var]? Are you putting those variables in /etc/ansible/hosts file?
Im still getting the following error: fatal: [server.COMPANY.COM]: FAILED! => {"failed": true, "msg": "ssl: 401 Unauthorized."} I have changed my groups_vars file (/etc/ansible/group_vars/win.yml) to the following ansible_user: u...@company.com ansible_port: 5986 ansible_connection: winrm ansible_winrm_server_cert_validation: ignore And the entry on the host file is: [win] server.COMPANY.COM I have double checked that I have a token logged in when I run 'klist'. No idea what could still be causing this error?? Any ideas would be appreciated. Cheers Mark On Thursday, April 7, 2016 at 1:27:23 PM UTC+1, Mark Matthews wrote: > > Hi > > > > Currently I have been connecting to servers to using local server > accounts, and therefore my ‘group_vars/winservers.yml’ file has looked like > the following: > > > > ansible_ssh_user: Administrator > > ansible_ssh_pass: PASSWORD > > ansible_ssh_port: 5986 > > ansible_connection: winrm > > > > But now I need to authenticate to servers that are connected on the > domain. How would I change this file? Is it as simple as… > > > > ansible_ssh_user: my.domain\mark.matthews > > ansible_ssh_pass: PASSWORD > > ansible_ssh_port: 5986 > > ansible_connection: winrm > > > > > > Cheers > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/09a38cbf-13b4-460b-84fa-5ef3d1b2662e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.