Is there a way to use the ‘copy’ module, or an equivalent, to copy files from one spot to another on the target host?
Right now, I’m trying to use ‘command’ or ‘shell’, but I’m running into issues with unusable choking on an asterisk, and I have to use several lines to copy, set ownership, set perms, etc.
Is there a way to use the 'copy' module, or an equivalent, to copy files from one spot to another on the target host?
>
Right now, I'm trying to use 'command' or 'shell', but I'm running into issues with unusable choking on an asterisk, and I have to use several lines to copy, set ownership, set perms, etc.
If you want to preserve permissions; or you could run a command that pipes
one to the other; or you could run a command that runs an rsync preserving
permissions.
If you want to copy a file and *change* the permissions, that could be
harder. Maybe the 'install' command?
-Josh (jbs@care.com)
This email is intended for the person(s) to whom it is addressed and may contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, distribution, copying, or disclosure by any person other than the addressee(s) is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email and delete the message and any attachments from your system.