Solved

When Specifying Multiple Variable Names and Values for a Playbook

Question 443

Multiple Choice

When specifying multiple variable names and values for a playbook on the command line, which of the following is the correct syntax?


A) ansible-playbook playbook.yml -e `host="foo" pkg="bar"'
B) ansible-playbook playbook.yml -e `host: "foo", pkg: "bar"'
C) ansible-playbook playbook.yml -e `host="foo"' -e `pkg="bar"'
D) ansible-playbook playbook.yml --extra-vars "host=foo", "pkg=bar"

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents