Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 701-100 Exam - Topic 7 Question 87 Discussion

Which of the following Ansible tasks copies the file example.txt to a manage system?
B) -- copy:src: example.txtdest: /tmp/example.txt
A) -- rsync:src: example.txtdst: /tmp/example.txt
C) -- retrieve:src: example.txtdest: /tmp/example.txt
D) - cp:source: example.txtdst: /tmp/example.txt
E) - transfer:src: example.txtdest: /tmp/example.txt

LPI 701-100 Exam - Topic 7 Question 87 Discussion

Actual exam question for LPI's 701-100 exam
Question #: 87
Topic #: 7
[All 701-100 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Kasandra
8 months ago
Wait, is D a real command?
upvoted 0 times
...
Gennie
8 months ago
I thought it was A at first.
upvoted 0 times
...
Scarlet
9 months ago
B is the correct answer!
upvoted 0 times
...
Francis
9 months ago
Definitely B, no doubt about it!
upvoted 0 times
...
Mona
9 months ago
C doesn't even exist in Ansible.
upvoted 0 times
...
Nidia
9 months ago
I feel like "rsync" could be a valid option, but it seems more complex than just copying a file.
upvoted 0 times
...
Cordell
9 months ago
I’m a bit confused about the options. I don’t recall seeing "retrieve" or "transfer" in our materials.
upvoted 0 times
...
Benedict
10 months ago
I remember practicing a question similar to this, and I think "copy" was definitely one of the modules we used.
upvoted 0 times
...
Nana
10 months ago
I think the correct answer might be B, but I'm not entirely sure if "copy" is the right module name.
upvoted 0 times
...
Herschel
10 months ago
Option B looks good to me. The "copy" module is a straightforward way to copy files in Ansible, and the syntax matches what I've seen in the documentation.
upvoted 0 times
...
Iluminada
10 months ago
I'm not too familiar with Ansible, so I'm not 100% sure on this one. I'd probably try to eliminate the options that seem less likely, like the "retrieve" and "transfer" tasks.
upvoted 0 times
...
Ashleigh
10 months ago
Ah, I've got it! The correct answer is B. The "copy" module is the way to go for this type of file transfer task in Ansible.
upvoted 0 times
...
Velda
11 months ago
Hmm, I'm a bit confused. I thought Ansible had a "retrieve" module, but I don't see that in the options. Maybe it's a different task name?
upvoted 0 times
...
Lizette
11 months ago
I'm pretty sure the answer is B. The "copy" module is the standard way to copy files in Ansible, and the syntax looks correct.
upvoted 0 times
...
Marilynn
1 year ago
B is the way to go. The 'copy' module is like the duct tape of Ansible - it just works!
upvoted 0 times
Kami
1 year ago
Carri: It's like the duct tape of Ansible!
upvoted 0 times
...
Jean
1 year ago
User 3: I always use the 'copy' module for file transfers.
upvoted 0 times
...
Carri
1 year ago
User 2: Agreed, the 'copy' module is very reliable.
upvoted 0 times
...
Gracia
1 year ago
User 1: I think B) -- copy:src: example.txtdest: /tmp/example.txt is the correct answer.
upvoted 0 times
...
...
Brittney
1 year ago
Definitely B. Who needs anything fancy when you've got the reliable 'copy' module?
upvoted 0 times
...
Filiberto
1 year ago
Hmm, I'm going with B. Can't go wrong with the good old 'copy' module.
upvoted 0 times
Dean
1 year ago
User2: Agreed, 'copy' is the way to go for copying files with Ansible.
upvoted 0 times
...
Chau
1 year ago
User1: I think B is the correct answer too. 'copy' module is reliable.
upvoted 0 times
...
...
Millie
1 year ago
I believe rsync is used for synchronization, not just copying files
upvoted 0 times
...
Rene
1 year ago
I'm not sure, but I think rsync might also be used for copying files
upvoted 0 times
...
Belen
1 year ago
I agree with Rashad, the copy task is used to copy files in Ansible
upvoted 0 times
...
Theron
1 year ago
B is the correct answer. The 'copy' module is the way to go for this task.
upvoted 0 times
...
Marylyn
1 year ago
I think the answer is B. The 'copy' module is used to copy files from the control node to the managed hosts.
upvoted 0 times
Jolene
1 year ago
User 3: Thanks for clarifying, I wasn't sure about that.
upvoted 0 times
...
Francoise
1 year ago
User 2: Yes, you're correct. The 'copy' module is used for that.
upvoted 0 times
...
Dalene
1 year ago
User 1: I think the answer is B.
upvoted 0 times
...
...
Rashad
1 year ago
I think the correct answer is B) -- copy:src: example.txtdest: /tmp/example.txt
upvoted 0 times
...
Felice
1 year ago
B) -- copy:src: example.txtdest: /tmp/example.txt. This is the correct Ansible task to copy a file to a managed system.
upvoted 0 times
Marylin
1 year ago
User 3: Thanks for clarifying, I will remember that for future reference.
upvoted 0 times
...
Kate
1 year ago
Nan: No problem! Ansible tasks can be confusing at first, but it gets easier with practice.
upvoted 0 times
...
Penney
1 year ago
User 2: Yes, you are right. That is the correct task to copy a file to a managed system.
upvoted 0 times
...
Pansy
1 year ago
User 1: I think the correct Ansible task is B) -- copy:src: example.txtdest: /tmp/example.txt
upvoted 0 times
...
Nan
1 year ago
User 2: Thanks for clarifying that. I was unsure which task to use.
upvoted 0 times
...
Dierdre
1 year ago
User 1: B) -- copy:src: example.txtdest: /tmp/example.txt is the correct option.
upvoted 0 times
...
...

Save Cancel