Juniper
JN0-222 · Question #52
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?
The correct answer is B. ansible-playbook myPlays --extra-vars "inventory_file=myRouters .ini". See the full explanation below for the reasoning.
Question
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?
Options
- Aansible-playbook myPlays --check -i
- Bansible-playbook myPlays --extra-vars "inventory_file=myRouters .ini"
- Cansible-playbook myPlays --extra-vars "dry run=True" myRouters.ini
- Dansible-playbook myPlays --limit myRouters
How the community answered
(17 responses)- A12% (2)
- B76% (13)
- C6% (1)
- D6% (1)
Community Discussion
No community discussion yet for this question.