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?
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/20337e0c-3fb3-443e-b55a-d1146a565cc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.