thank you all
it worked finally.
i can start working on rest of the modules now.
On Wed, Sep 16, 2020 at 12:02 PM Dick Visser wrote:
>
> In essence the remote_src parameter is a Boolean:
>
> https://docs.ansible.com/ansible/latest/modules/win_copy_module.html#parameter-remote_src
>
>
> On
In essence the remote_src parameter is a Boolean:
https://docs.ansible.com/ansible/latest/modules/win_copy_module.html#parameter-remote_src
On Wed, 16 Sep 2020 at 17:57, Raju Das wrote:
>
> - name: Copy a single file where the source is on the remote host
>
> win_copy:
>
> src:
- name: Copy a single file where the source is on the remote host
win_copy:
src: C:\Temp\foo.txt
dest: C:\ansible\foo.txt
*remote_src: yes <-use this
*- name: Copy a folder recursively where the source is on the remote host
win_copy:
actually
source file is also on windows server ( which is also the target server)
do we need to mention any remote_host ?
On Wed, Sep 16, 2020 at 11:28 AM rubod singh wrote:
>
> Thanks Rahul -
>
> got this error now
>
>
> {
> "src": "C:\\abc.txt",
> "dest": "C:\\ansible\\abc.txt",
>
Thanks Rahul -
got this error now
{
"src": "C:\\abc.txt",
"dest": "C:\\ansible\\abc.txt",
"msg": "Could not find or access 'C:\\abc.txt'\nSearched
Hello Rubod,
Please try to run the below code and check.
---
- name: "Copy Files"
hosts: all
tasks:
- name: Copy Files
win_copy:
src: C:\abc.txt
dest: C:\ansible\abc.txt
On Wednesday, September 16, 2020 at 6:17:13 PM UTC+5:30 rubod...@gmail.com
wrote:
> HI Team,
>
> please help