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 me in this as i'm very new to this , i'm getting this
> error while testing the simple windows file copy module through awx.
>
> Ansible VM is on Azure
> Target Windows machine is also on Azure - No network restrictions as
> this is a POC project
>
> playbook :
>
> ---
> - name: "Copy Files"
> hosts: all
>
> tasks:
> - name: Copy Files
> win_copy:
> remote_src: C:\abc.txt
> remote_dest: C:\ansible\abc.txt
>
>
>
> error :
>
> {
> "src": null,
> "dest": null,
> "msg": "src (or content) and dest are required",
> "_ansible_no_log": false,
> "changed": false
> }
>
>
> Any help is appreciated.
>
> Thanks
>
> Rubod
>

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f508c5c1-68b7-43f4-a7fd-7dd2712a6f94n%40googlegroups.com.

Reply via email to