When it comes to transferring files to a remote system with Ansible, the copy and template modules are great tools for the job. Ansible’s copy and template modules are a great way to get started with automation.
Source: LXer – Choosing between Ansible’s copy and template modules