Move a file on the remote host

Hi,

I looking for a very simple action : move a file with an ansible module on the remote host. (like the mv command).

Now, I’m using the ‘fetch’ module and then the ‘copy’ module but I sure that there is an ansible module that can the two actions in the same time.

Thanks!!
Romain

Here’s one way to do it:

shell: mv path1 path2 remotes=path1 creates=path2

I’m looking for the same functionality.

For some reason the guys from ansible refuse to implement such module (all solutions suggest using a shell module).

Any idea why is that?