Hi Im just running the playbook as follows: ansible-playbook test_ping.yml
The playbook looks like this: - name: Ping Servers hosts: win tasks: - name: ping win_ping: I run the playbook now with -vvvvv, and got the following output: TASK [setup] ******************************************************************* <uk-ansible-test02.COMPANY.COM> ESTABLISH WINRM CONNECTION FOR USER: markm_ad...@company.com on PORT 5986 TO uk-ansible-test02.COMPANY.COM <uk-ansible-test02.COMPANY.COM> WINRM CONNECT: transport=ssl endpoint=https://uk-ansible-test02.COMPANY.COM:5986/wsman <uk-ansible-test02.COMPANY.COM> WINRM CONNECTION ERROR: 401 Unauthorized. basic auth failed Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ansible/plugins/connection/winrm.py", line 138, in _winrm_connect protocol.send_message('') File "/usr/lib/python2.7/site-packages/winrm/protocol.py", line 193, in send_message return self.transport.send_message(message) File "/usr/lib/python2.7/site-packages/winrm/transport.py", line 125, in send_message raise UnauthorizedError(transport='plaintext', message=ex.msg) UnauthorizedError: 401 Unauthorized. basic auth failed Its like its making the connection to the server but not authorized to do anything?? If i run the 'klist' command to view the token, this is the output: [root@uk-ansible01 windows]# klist Ticket cache: KEYRING:persistent:0:0 Default principal: u...@company.com Valid starting Expires Service principal 08/04/16 13:52:21 08/04/16 23:52:21 krbtgt/company....@company.com renew until 08/04/16 23:52:21 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/1df35d8a-2a39-4ba2-bac9-b5b045907e16%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.