Recursive copy without copying top dir?

Ansible v2.4.0.0

I want to copy the contents of a local directory to my target host, but the recursive option copies the directory itself. That is

`

  • 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

`

The result has this on the target host

/some_path/remote_dir/local_dir/dir1 /some_path/remote_dir/local_dir/dir2

…but I want this

/some_path/remote_dir/dir1
/some_path/remote_dir/dir2

Is this achievable?

The docs have the answer

"src: - If path is a directory, it is copied recursively. In this case, if path ends with "/", only inside contents of that directory are copied to destination. Otherwise, if it does not end with "/", the directory itself with all contents is copied."

Thank you. Sad thing is I’ve done this before and (now) remember reading that part of the docs.