An Ansible variable file contains the following content:myapp:option1: oneWhich of the following strings can be used to reference the defined variable? (Choose two correct answers).
This is a good test of my Ansible knowledge. I'm pretty confident I can narrow down the correct answers, but I'll want to review the variable access syntax to be sure.
I'm a little confused by the different options here. I'll need to double-check the Ansible variable syntax to make sure I understand the differences between these choices.
Okay, let me think this through step-by-step. The variable is defined in a YAML file, so I'll need to use dot notation or bracket notation to access it. I'm guessing the correct answers are C and D.
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.
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.
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.
Sherell
7 months agoHershel
7 months agoLenna
7 months agoCharolette
7 months agoLeatha
7 months agoNgoc
8 months agoMargret
8 months agoDetra
8 months agoClare
8 months agoFrancine
9 months agoMari
9 months agoAlyce
9 months agoSkye
9 months agoFrancesco
9 months agoLucille
1 year agoLinsey
1 year agoEsteban
1 year agoEstrella
1 year agoEleni
1 year agoDominga
1 year agoDusti
1 year agoMelvin
1 year agoGerald
1 year agoRashad
1 year agoShakira
1 year agoLindsey
1 year agoIsidra
1 year agoAnna
1 year agoRozella
1 year agoDonte
1 year agoRicarda
1 year agoFlorinda
1 year agoTambra
1 year agoAvery
1 year agoLovetta
1 year ago