Use copy (to copy on the second server), fetch (to get the file on the controller), and stat (to get rights) modules
Regards,
JYL
--
Use copy (to copy on the second server), fetch (to get the file on the controller), and stat (to get rights) modules
Regards,
JYL
Le 19/05/2020 à 22:38, Laci a écrit :
Another detail is that serverA can't talk to serverB or vice versa, only the Ansible server can talk to both of them--
On Tuesday, May 19, 2020 at 2:29:49 PM UTC-4, Laci wrote:I have some files with 0400/-r-------- permissions on server A that I need to copy to server B and preserve permissions.
For example:serverA:/etc/ssl_cert.key -> serverB:/etc/ssl_cert.key
How would you do it?
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.