Hey @Nishant, you can use the copy module provided by Ansible to copy files and folders from the local server to the remote servers, all you've to do is change those file's/folder's permissions. 
Example:
- hosts: hosts
  tasks:
  - name: Ansible copy file to remote server
    copy:
      src: ~/sample.txt
      dest: /tmp 
If you wish to copy the files from the remote server to the local server then use the fetch module.
There's yet another module Template provided by Ansible which lets you use variables which can be modified like the IP address and then copied to another server.