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 Exam 701-100 Topic 3 Question 88 Discussion

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

An Ansible variable file contains the following content:

myapp:

option1: one

Which of the following strings can be used to reference the defined variable? (Choose two correct answers).

Show Suggested Answer Hide Answer
Suggested Answer: A, E

Contribute your Thoughts:

Lucille
29 days ago
Ah, the old Ansible variable question. C) myapp['option1'] and D) myapp.option1 are the clear winners here. Although, I'm pretty sure the designers of Ansible had a sense of humor when they named it. Maybe they were big fans of the Dune series.
upvoted 0 times
...
Linsey
1 months ago
C) myapp['option1'] and D) myapp.option1 are the way to go. Although, I'm still trying to figure out why they call it 'Ansible' - must be some sort of inside joke.
upvoted 0 times
...
Dominga
1 months ago
Yeah, I agree with C) myapp['option1'] and D) myapp.option1. Gotta love that Ansible dot and bracket notation!
upvoted 0 times
Gerald
9 days ago
I think C) myapp['option1'] is the correct way to reference the variable.
upvoted 0 times
...
...
Rashad
1 months ago
I'm pretty sure the correct answers are C) myapp['option1'] and D) myapp.option1. Ansible variables are accessed using those two methods, right?
upvoted 0 times
Shakira
2 days ago
Thanks for confirming. It's important to know how to properly access variables in Ansible for smooth automation processes.
upvoted 0 times
...
Lindsey
16 days ago
Yes, that's right. Those are the correct ways to reference the defined variable in an Ansible variable file.
upvoted 0 times
...
Isidra
1 months ago
I think you're correct. Ansible variables can be accessed using myapp['option1'] and myapp.option1.
upvoted 0 times
...
...
Anna
2 months ago
Hmm, let me think. I'll go with C) myapp['option1'] and D) myapp.option1. Ansible uses dot notation and bracket notation to access variables, so those two options seem like the winners to me.
upvoted 0 times
Rozella
6 days ago
Absolutely, C) myapp['option1'] and D) myapp.option1 are the way to go when referencing variables in Ansible.
upvoted 0 times
...
Donte
7 days ago
Great, I'm glad we're on the same page. Those two options are the ones that align with how Ansible handles variable references.
upvoted 0 times
...
Ricarda
8 days ago
Yes, Ansible allows you to access variables using dot notation or bracket notation, so C) and D) are the correct choices.
upvoted 0 times
...
Florinda
15 days ago
I think you're right. C) myapp['option1'] and D) myapp.option1 are the correct ways to reference the defined variable.
upvoted 0 times
...
...
Tambra
2 months ago
I'm not sure about E) myapp{{option1}}, it looks like it might have a syntax error. I would go with C) and D) as well.
upvoted 0 times
...
Avery
2 months ago
I agree with Lovetta, those options make sense because they follow the correct syntax for referencing variables in Ansible.
upvoted 0 times
...
Lovetta
2 months ago
I think the correct answers are C) myapp['option1'] and D) myapp.option1
upvoted 0 times
...

Save Cancel