JN0-221 Exam QuestionsBrowse all questions from this exam

JN0-221 Exam - Question 32


Click the Exhibit button.

Referring to the exhibit, what is the function of the register key?

Show Answer
Correct Answer: C

The 'register' key in Ansible is used to capture the output of a task into a variable. This variable can then be used later in the playbook to examine the results of the task, make decisions, or pass the data to other tasks. In the provided playbook, the 'register' key is used to define the variable 'out' that will contain the return value from the 'juniper_junos_config' module.

Discussion

2 comments
Sign in to comment
lucabobanOption: D
Feb 17, 2021

I think correct answer is: D

owlbufi
Mar 20, 2021

No it's not D, the out it's just a normal variable, it's not standard out variable.

penguin02007Option: C
Nov 12, 2023

C is correct