yes the file name windows.yml

*This is my playbook*

- name: raw module example
  hosts: server.domain.es
  tasks:
     - name: Move file on remote Windows Server from one location to another
       raw: CMD /C "MOVE /Y D:\origen\prueba.txt D:\destino\prueba.txt"

*RESULT:*
*.*
*.*
*.*
*.*
fatal: [s <http://srwbdwp02.mutua.es/>erver.domain.is]: UNREACHABLE! => 
{"changed": false, "msg": "Failed to connect to the host via ssh.", 
"unreachable": true}


*if i change to *

- name: raw module example
  hosts: windows
  tasks:
     - name: Move file on remote Windows Server from one location to another
       raw: CMD /C "MOVE /Y D:\origen\prueba.txt D:\destino\prueba.txt"

*RESULT*:succesfull but all skipped

Using /etc/ansible/ansible.cfg as config file 
SSH password: 
Loaded callback default of type stdout, v2.0 
PLAYBOOK: pruebaaitorwin.yml 
*************************************************** 
1 plays in pruebaaitorwin.yml 
PLAY [raw module example] 
****************************************************** 
skipping: no hosts matched 
PLAY RECAP 
*********************************************************************  

El martes, 15 de noviembre de 2016, 9:07:32 (UTC+1), J Hawkesworth escribió:
>
> Please show us your playbook.
>
> Your group_vars file must be called 'windows.yml' not 'Windows.yml' 
> otherwise the group name you have defined will not match (it is 
> case-sensitive) and ansible will default to ssh connection.
>
> Also check your playbook looks like
>
> --
> hosts: windows
>
>
>
> Hope this helps,
>
> Jon
>
> On Tuesday, November 15, 2016 at 8:02:41 AM UTC, Aitor Gómez wrote:
>>
>> No i not configure kerberos (other partner install ansible ansible 
>> 2.1.1.0 in our organization and tell us is not necesary install 
>> kerberos). pywinrm-0.2.1
>>
>> El lunes, 14 de noviembre de 2016, 20:39:41 (UTC+1), Mike Fennemore 
>> escribió:
>>>
>>> The user isn't in the correct user@domain format firstly. Have you setup 
>>> kerberos as per the Ansible documentation? It might also be an idea to 
>>> check what version of pywinrm you're running. What version of Ansible is 
>>> the server running? 
>>
>>

-- 
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/8ab1321a-f7e3-440f-b409-7d6a1740b95b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to