Your dest should have 2 backslashes at the start, right now it's being 
treated as a local path. Even with a UNC path you are most likely going to 
hit the double hop problem with delegating your credentials. Make sure you  
use Kerberos with credential delegation, CredSSP, or use become on the task 
to bypass that.
On Saturday, February 20, 2021 at 11:57:57 PM UTC+10 [email protected] 
wrote:

> I am already using remote_src: yes option.
>
> Thanks and Regards,
> Praveen Singh
> On Sat, Feb 20, 2021 at 5:53 AM Ramakrishna Veeragandham <
> [email protected]> wrote:
>
>> Remoe remote_src: yes option and try.  
>>
>> Thanks,
>> Ram
>>
>> On Sat, Feb 20, 2021, 21:44 'Praveen Kumar Singh' via Ansible Project <
>> [email protected]> wrote:
>>
>>> Hello Everyone,
>>>
>>> I am trying to copy backup files from one remote windows server to 
>>> another windows server using ansible playbook but not able to do so. I am 
>>> using below playbook and which is running successfully also but when I 
>>> check the backup file at destination location it is not present there. So 
>>> any help would be appreciated.
>>>
>>> ---
>>>   - hosts: SQLSERVER
>>>
>>>     vars:
>>>      Hostname:
>>>
>>>     vars_prompt:
>>>      - name: Hostname
>>>        private: no
>>>        prompt: Hostname
>>>        default:
>>>
>>>     tasks:
>>>       - name: Sync SQLSERVER to SQLSERVER2
>>>         ansible.windows.win_copy:
>>>            src: E:\BACKUP
>>>            dest: \{{ Hostname }}\E$\BACKUP\
>>>            remote_src: yes
>>>            recurse: yes
>>>
>>> Thanks and Regards,
>>> Praveen Singh
>>>
>>> -- 
>>> 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 view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/dbfc0151-effa-43f5-8554-0badd88bcdb0n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/ansible-project/dbfc0151-effa-43f5-8554-0badd88bcdb0n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CAPb_6R%3DJbMvA2sTWCbVVy198A3893ec%3DWkNUxpw76hiV9pjZAg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/CAPb_6R%3DJbMvA2sTWCbVVy198A3893ec%3DWkNUxpw76hiV9pjZAg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9e27c478-09bc-45a2-8fd1-836a616841ban%40googlegroups.com.

Reply via email to