Why don’t you use rsync module which will work good in directory and remote hosts. I think cp module will not work recursively.
Why don’t you use rsync module which will work good in directory and remote hosts. I think cp module will not work recursively.