---
- name: Example of copying some files and folders to remote server
  hosts: Whydah_UserIdentityBackend
  tasks:
    - name: Sync some stuff
      synchronize: src=copy_data_from_folder/ dest=/home/UserIdentityBackend/ recursive=yes
---
- name: Example of copying some files and folders to remote server
  hosts: Whydah_UserIdentityBackend
  sudo: true
  sudo_user: UserIdentityBackend
  tasks:
    - name: Copy files and folders to root folder
      copy: src=copy_data_from_folder/ dest=/home/UserIdentityBackend/
Copy works better because files need permission of app user
Copy works better because files need permission of app user
