Which Ansible keyword is used in a playbook to store the result (i.e. return code) of a task in a variable?
Suggested Answer: A
Get Premium 701-100 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
30 comments · newest first
DO
Doug
8 months ago
I remember using register in my last project.
ED
Edmond
8 months ago
A) register is definitely the right choice.
KR
Kristofer
8 months ago
I considered B) return, but it doesn't fit.
EF
Effie
8 months ago
I was unsure, but A makes sense.
RE
Renato
8 months ago
Yeah, I feel the same. It stores task results.
FR
France
8 months ago
I think it's A) register.
MA
Mammie
9 months ago
A) register is the one! Easy peasy.
JA
Jamal
9 months ago
Wait, is it really A? I always get confused with these!
LA
Lajuana
9 months ago
A) register is correct, no doubt about it.
ER
Erick
10 months ago
I thought it was B) return at first!
EL
Elmira
10 months ago
I wonder if there's an "Ansible: The Musical" version of this question...
MA
Marjory
10 months ago
E) set_fact is useful for storing more complex data, but for simple task results, A) register is the way to go.
DA
Dahlia
10 months ago
D) result sounds like it should work, but I guess A) is the official Ansible term.
IS
Isreal
10 months ago
A) register is the correct answer.
VI
Vince
10 months ago
I thought "return" was the keyword at first, but now I’m leaning towards "register." I hope I remember correctly!
EL
Ellen
11 months ago
I’m pretty confident it’s "register." I practiced a question that asked about storing task outputs, and that was the answer.
ED
Edgar
11 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.
CR
Craig
11 months ago
Easy one! The answer is definitely A) register. That's the standard way to save task results in Ansible playbooks.
CA
Catarina
11 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.
EV
Evangelina
11 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.
NU
Nu
11 months ago
It's definitely A) register.
CH
Chandra
12 months ago
The register keyword sounds familiar, but I want to double-check that in the Ansible docs before I commit to an answer.
BE
Bettina
12 months ago
I always get confused between register and set_fact. Glad this one's clear!
LA
Lavonda
1 year 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?
VI
Victor
1 year ago
I'm pretty sure the answer is A) register. That's the Ansible keyword I've used before to store task results.
RE
Reed
7 months ago
Agreed! A) register is the way to go.
ME
Merilyn
7 months ago
Definitely A) register! It's a common practice.
VE
Veta
7 months ago
I was confused between A and E, but A makes sense.
RA
Raul
7 months ago
Yeah, I've used it too. It works great!
CE
Celeste
7 months ago
I think you're right! A) register is the one.