Hi all,

Just getting started with Ansible as proof of concept but already stuck and 
not sure how to make it work. I have a CentOS7 box that is not on the 
domain but on the same network and 2 Windows 2012 R2 servers.

I ran the ConfigurePowerShellForAnsible.ps1 scripts on both servers as 
admin, as suggested. I set up a local account named 'ansibleadmin' on both 
servers.

This is the output I get when trying to win_ping the servers:

> [admin@localhost ansible]$ ansible web -m win_ping
>
>  [WARNING]: ansible_winrm_cert_validation unsupported by pywinrm (is an 
>> up-to-date version of pywinrm installed?)
>
>
>>  [WARNING]: ansible_winrm_cert_validation unsupported by pywinrm (is an 
>> up-to-date version of pywinrm installed?)
>
>
>> 10.128.2.108 | UNREACHABLE! => {
>
>     "changed": false,
>
>     "msg": "plaintext: the specified credentials were rejected by the 
>> server",
>
>     "unreachable": true
>
> }
>
> 10.128.2.215 | UNREACHABLE! => {
>
>     "changed": false,
>
>     "msg": "plaintext: the specified credentials were rejected by the 
>> server",
>
>     "unreachable": true
>
> }
>
>
Some background information regarding my inventory files etc:
inventory.yml:

>
> ---
> [web]
> 10.128.2.215
> 10.128.2.108



group_vars/web.yml:

> ---
> ansible_user: ansibleadmin
> ansible_password: Passw0rd
> ansible_port: 5985
> ansible_connection: winrm
> ansible_winrm_cert_validation: ignore



ansible.cfg:

> [defaults]
> inventory      = /etc/ansible/inventory.yml



Versions:
Pywinrm 0.2.2
Python 2.7.5
Ansible 2.3.1.0
CentOS 7.3.1611 (Core)


I have no clue why I can't get it to work with a local account and am 
hesitant to move on to kerberos AD authentication if I can't even get this 
to work. Any advice? 

-- 
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/9a2325d6-868e-42e7-ac95-e66d317a8458%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to