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

Juniper Exam JN0-223 Topic 2 Question 22 Discussion

Actual exam question for Juniper's JN0-223 exam
Question #: 22
Topic #: 2
[All JN0-223 Questions]

You want to perform a dry run on the myPlays playbook and use a custom inventory file called myRouters.ini.

Which Ansible command would you use in this scenario?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Nell
1 months ago
A dry run, huh? That's the perfect way to test your playbook without breaking anything. Option A is the clear winner here.
upvoted 0 times
Ceola
1 months ago
User 2: Good choice! That command will let you test the playbook without making any changes.
upvoted 0 times
...
Casandra
1 months ago
User 1: A) ansible-playbook myPlays --check -i myRouters.ini
upvoted 0 times
...
...
Carmen
2 months ago
Option A is the way to go, no doubt. Though I have to say, 'myRouters.ini' - that's a pretty boring filename. Why not 'myAwesomeRouters.ini'?
upvoted 0 times
Anthony
26 days ago
User 3: 'myAwesomeRouters.ini' does sound more exciting though.
upvoted 0 times
...
Allene
1 months ago
User 2: Yeah, I agree. Option A is the way to go.
upvoted 0 times
...
Altha
2 months ago
User 1: I think option A is the correct one.
upvoted 0 times
...
...
Clare
2 months ago
Hmm, Option A seems to have all the right components. Gotta love it when the Ansible docs come in handy, am I right?
upvoted 0 times
Vallie
1 months ago
User 3: I agree, let's go with Option A for the dry run.
upvoted 0 times
...
Glory
2 months ago
User 2: Definitely, Ansible docs are a lifesaver.
upvoted 0 times
...
Ramonita
2 months ago
User 1: Yeah, Option A looks like the way to go.
upvoted 0 times
...
...
Aide
2 months ago
Interesting, I didn't consider that. What do you think, Dave?
upvoted 0 times
...
Azalee
2 months ago
I see your point, but I think C) ansible-playbook myPlays ---extra-vars 'dry run=True' myRouters.ini might be the right choice as it mentions dry run explicitly.
upvoted 0 times
...
Elfrieda
2 months ago
The `--check` flag in Option A is crucial for a dry run, and using the `-i` option to specify the custom inventory file is the way to go.
upvoted 0 times
...
Tien
3 months ago
I disagree, I believe the correct answer is B) ansible-playbook myPlays ---extra-vars 'inventory_file=myRouters.ini' because we need to specify the inventory file.
upvoted 0 times
...
Veronika
3 months ago
Option A looks like the correct command to perform a dry run on the myPlays playbook using the myRouters.ini inventory file.
upvoted 0 times
Willard
2 months ago
User 3: Thanks for the clarification. I'll use that command for my playbook.
upvoted 0 times
...
Glendora
2 months ago
User 2: Yes, that's correct. Option A is the right choice for a dry run with a custom inventory file.
upvoted 0 times
...
Georgeanna
2 months ago
User 1: I think the command should be ansible-playbook myPlays --check -i myRouters.ini
upvoted 0 times
...
...
Aide
3 months ago
I think the answer is A) ansible-playbook myPlays --check -i myRouters.ini because we want to use a custom inventory file.
upvoted 0 times
...

Save Cancel