0 votes
in Ansible by
How can you use the Ansible module “copy” to copy a file to a target system?

a) By providing the contents of the file as a parameter to the module, along with the path to copy the file to

b) By using a Jinja2 template to generate the contents of the file, including the path to copy the file to

c) By using the “src” parameter to specify the path to the file on the control node, and the “dest” parameter to specify the path to copy the file to on the target system

d) By using the “path” parameter to specify the path to the file on the control node, and the “copy_to” parameter to specify the path to copy the file to on the target system

1 Answer

0 votes
by
Solution: c) By using the “src” parameter to specify the path to the file on the control node, and the “dest” parameter to specify the path to copy the file to on the target system

Explanation: The Ansible module “copy” can be used to copy a file to a target system by using the “src” parameter to specify the path to the file on the control node and the “dest” parameter to specify the path to copy the file to on the target system.
...