701-100 Exam QuestionsBrowse all questions from this exam

701-100 Exam - Question 15


Which of the following Ansible tasks copies the file example.txt to a manage system?

Show Answer
Correct Answer: B

The correct Ansible task that copies the file example.txt to a managed system is using the 'copy' module. The syntax for the 'copy' module is 'copy: src: example.txt dest: /tmp/example.txt'. This module is specifically designed for copying files to a managed system in Ansible, which ensures that the content is transferred correctly.

Discussion

2 comments
Sign in to comment
Blob21Option: B
Jun 21, 2021

https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html

alex87Option: B
Feb 1, 2023

B is correct