I have folder which is having lot of files and i need to compare it from one server to another server. If the file is not on the destination server then need to copy the same. Can you please help in writing ansible playbook to do the same thing.
For example: A server is having 100 files and I need to compare this into B server and if any file missing then copy to B server. I need to write this in Ansible, please help. Thanks, Raghu