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?