https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_copy_module.html#parameter-force

On Mon, 21 Feb 2022 at 15:27, Kerem Kalayci <[email protected]> wrote:

> Hi everyone,
>
> i m trying to copy file. But win_copy doesn't copy overwrite. How can I
> overcome this error? is there a way to get around this?
>
> my code>>>
>
>   - name: Copy a single file where the source is on the remote host
>     win_copy:
>       src: C:\Tools\AWXtest\New folder\autounattend.xml
>       dest: E:\OtomasyonFiles\WINDOWSISO\win2019
>       remote_src: yes
>
> >>>>
> Error: "msg": "cannot copy file from 'C:\\Tools\\AWXtest\\New
> folder\\autounattend.xml' to 'E:\\OtomasyonFiles\\WINDOWSISO\\win2019':
> dest is already a folder
>
> --
> 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/86676885-5d56-44be-88d2-52cd6ccd555cn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/86676885-5d56-44be-88d2-52cd6ccd555cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
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/CAL8fbwOgRp-547P2O-ko59xnV9p61SecpaCeU09%2BfhjARpADeQ%40mail.gmail.com.

Reply via email to