Hi, I have vritual machine with Ansible. Now i want copy data from directory certyfikaty on svrhost to directory /svr/vaultwarden/cert folder on svrdocker. I don’t know what’s wrong, but below code dosen;t work
Ok, I understand that I can’t directly upload files from svrhost to svrdocker, I have to first upload them from svrhost to the virtual machine with ansible?
while synchronize (see 2nd and other examples) can do this, it can be tricky and it only works if the machines can ssh to each other, otherwise i recommend to just do shell: scp -3 .. + delegate_to: localhost, which avoids copying the files to the controller, they are just streamed through.