New Year Sale 2026! 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 8 Question 95 Discussion

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

Which Ansible keyword is used in a playbook to store the result (i.e. return code) of a task in a variable?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

0/2000 characters
Mammie
13 hours ago
A) register is the one! Easy peasy.
upvoted 0 times
...
Jamal
6 days ago
Wait, is it really A? I always get confused with these!
upvoted 0 times
...
Lajuana
11 days ago
A) register is correct, no doubt about it.
upvoted 0 times
...
Erick
16 days ago
I thought it was B) return at first!
upvoted 0 times
...
Elmira
21 days ago
I wonder if there's an "Ansible: The Musical" version of this question...
upvoted 0 times
...
Marjory
26 days ago
E) set_fact is useful for storing more complex data, but for simple task results, A) register is the way to go.
upvoted 0 times
...
Dahlia
1 month ago
D) result sounds like it should work, but I guess A) is the official Ansible term.
upvoted 0 times
...
Isreal
1 month ago
A) register is the correct answer.
upvoted 0 times
...
Vince
1 month ago
I thought "return" was the keyword at first, but now I’m leaning towards "register." I hope I remember correctly!
upvoted 0 times
...
Ellen
2 months ago
I’m pretty confident it’s "register." I practiced a question that asked about storing task outputs, and that was the answer.
upvoted 0 times
...
Edgar
2 months ago
I'm leaning towards E) set_fact. I think that's the more modern way to store task results these days, but I could be wrong.
upvoted 0 times
...
Craig
2 months ago
Easy one! The answer is definitely A) register. That's the standard way to save task results in Ansible playbooks.
upvoted 0 times
...
Catarina
2 months ago
I keep mixing up "register" and "set_fact." I feel like I’ve seen both in playbooks, but I can't recall which one is for storing task results.
upvoted 0 times
...
Evangelina
2 months ago
I think the keyword is "register," but I’m not entirely sure. I remember it being used in a similar question during practice.
upvoted 0 times
...
Nu
2 months ago
It's definitely A) register.
upvoted 0 times
...
Chandra
3 months ago
The register keyword sounds familiar, but I want to double-check that in the Ansible docs before I commit to an answer.
upvoted 0 times
...
Bettina
3 months ago
I always get confused between register and set_fact. Glad this one's clear!
upvoted 0 times
...
Lavonda
3 months ago
Hmm, I'm a bit unsure about this one. I know there's a way to capture task results, but I can't remember the exact keyword. Maybe C) output or D) result?
upvoted 0 times
...
Victor
3 months ago
I'm pretty sure the answer is A) register. That's the Ansible keyword I've used before to store task results.
upvoted 0 times
...

Save Cancel