Move a file from a remote host to the same remote host

Hi,

I’m looking for a very simple thing : an ansible command to move a file (or a folder) to an other file/folder on the remote host.

The ‘copy’ module can copy from the local machine to the remote host, I want the same but for copying from remote host to remote host…

I try to avoid using ‘command’ module with ‘mv’, I assume that it’s possible to perform it with ansible.

Any suggestions?

Thanks,
Romain.

check the synchronize module and delegate.