xxxxxxxxxx
- name: Copy files from foo to bar
copy: remote_src=True src=/path/to/foo dest=/path/to/bar
xxxxxxxxxx
#if True it will go to the remote/target machine for the src.
- name: Copy files from foo to bar
copy: remote_src=True src=/path/to/foo dest=/path/to/bar
#If you want to move file you need to delete old file with file module
- name: Remove old files foo
file: path=/path/to/foo state=absent