Win_copy Not working

27 views
Skip to first unread message

Praveen Kumar Singh

unread,
Feb 16, 2021, 3:32:29 AM2/16/21
to Ansible Project
I am trying to copy backup file from one remote windows server to another windows server using below playbook but the backup file is not copying. Although the playbook is running successful then also the backup file is not present at the destination. Below is the playbook I am using.

---
  - hosts: SQLSERVER

    tasks:
      - name: Sync SQLSERVER to SQLSERVER2
        win_copy:
           src: E:\backups
           dest: \SQLSERVER2\d$\Retention10days\
           remote_src: yes
           recurse: yes

Capture.PNG

Thanks and regards,
Praveen Singh

Wei-Yen Tan

unread,
Feb 16, 2021, 3:46:06 AM2/16/21
to ansible...@googlegroups.com
Sounds like you are hitting the double hop issue with winrm 


From: 'Praveen Kumar Singh' via Ansible Project <ansible...@googlegroups.com>
Sent: Tuesday, February 16, 2021 9:32:28 PM
To: Ansible Project <ansible...@googlegroups.com>
Subject: [ansible-project] Win_copy Not working
 
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4e1a5f17-aee7-4c53-93b9-63d34ae8f5e2n%40googlegroups.com.

Praveen Kumar Singh

unread,
Feb 16, 2021, 9:15:00 AM2/16/21
to ansible...@googlegroups.com
Okay, so how can I resolve this double hop issue?

Thanks and regards,
Praveen Singh

Praveen Kumar Singh

unread,
Feb 17, 2021, 9:38:31 AM2/17/21
to ansible...@googlegroups.com
Can someone please help me on this issue?

Thanks and Regards,
Praveen Singh
Reply all
Reply to author
Forward
0 new messages