EDIT: my files are now 

/etc/ansible/group_vars/windows/windows.yml 
ansible_ssh_user: AnsibleUser
ansible_ssh_pass: ansiblepass
ansible_ssh_port: 5986
ansible_connection: winrm

/etc/ansible/hosts 
[windows]
WIN-F6531IBP8NG

the ping is working but sometimes it fails with this message:
WIN-F6531IBP8HG | FAILED >> {
"failed": true, 
"msg": "\nProcess is terminated due to StackOverflowException.\n", 
"parsed": false
} 
or this one:
WIN-F6531IBP8HG | FAILED >> {
"failed": true, 
"msg": "", 
"parsed": false
}

but when i run the playbook, it still tries to connect via ssh and not 
winrm so it doesn't seem to see my windows.yml file but i don't know how to 
deal with this issue....

Le lundi 22 juin 2015 12:46:56 UTC+1, Guillaume Querso a écrit :
>
> Hello, i am running ansible 1.9.1 on a Ubuntu server 14.04.2, my remote 
> machine is a windows 7 sp1.
> i have the following files and error message, i don't understand where the 
> issue is.. 
>
> /etc/ansible/group_vars/windows.yml
>
> ansible_ssh_user: AnsibleUser
> ansible_ssh_pass: ansiblepass
> ansible_ssh_port: 5986
> ansible_connection: winrm
>
> /etc/ansible/winplaybook.yml
>
>    - hosts: WIN-F6531IBP8HG tasks:
>       - name: unarchive unarchive: src=/tmp/hello.txt.zip 
>       dest=C:\Users\Querso\Desktop
>    
> /etc/ansible/hosts
>
> WIN-F6531IBP8HG
>
> i have python 2.7.6 and i have the following error message:
> ansible-playbook /etc/ansible/winplaybook.yml -i WIN-F6531IBP8HG,
>
> PLAY [WIN-F6531IBP8HG] 
> ********************************************************
>
> GATHERING FACTS 
> *************************************************************** 
> fatal: [WIN-F6531IBP8HG] => SSH Error: Permission denied 
> (publickey,password,keyboard-interactive).
> while connecting to 192.168.79.133:22
> It is sometimes useful to re-run the command using -vvvv, which prints SSH 
> debug output to help diagnose the issue.
>
> TASK: [unarchive] 
> ************************************************************* 
> FATAL: no hosts matched or all hosts have already failed -- aborting
>
> PLAY RECAP 
> ******************************************************************** 
> to retry, use: --limit @/home/guillaume/winplaybook.retry
>
> WIN-F6531IBP8HG : ok=0 changed=0 unreachable=1 failed=0
>
> if i try to ping windows:
> ansible WIN-F6531IBP8HG -m win_ping
> WIN-F6531IBP8HG | FAILED => SSH Error: Permission denied 
> (publickey,password,keyboard-interactive).
> while connecting to 192.168.79.133:22
> It is sometimes useful to re-run the command using -vvvv, which prints SSH 
> debug output to help diagnose the issue.
>
> thanks for your help!!
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b1170549-b3fa-401d-b14f-d73485b12fc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to