- name: Copy local files target
copy:
src: /tmp/local_dir
dest: /some_path/remote_dir
recurse: yes
/tmp/local_dir has
- dir1/some_dirs_and_files
- dir2/some_dirs_and_files
/some_path/remote_dir/local_dir/dir1
/some_path/remote_dir/local_dir/dir2/some_path/remote_dir/dir1
/some_path/remote_dir/dir2