Member-only story
Copy files to remote hosts — Ansible module copy
How to copy report.txt file to remote hosts using Ansible module copy.
3 min readAug 17, 2021
How to Copy files to remote hosts?
I’m going to show you a live demo with some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot
Ansible copy files to remote hosts
Today we’re talking about Ansible module copy.
The full name is “ansible.builtin.copy” which means is part of the collection of modules “builtin” with ansible and shipped with it.
This module is pretty stable and out for years.
The purpose is to copy files to remote locations.
Please note that the opposite is done by module fetch.
Parameters
- dest path