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:
Verified
Q438: If designing a single playbook to run
Q439: Fill the blanks: _ helps us track
Q440: You want to pass queue messages that
Q441: If a variable is assigned in the
Q442: You have a playbook that includes a
Q444: What is the proper (best practice) way
Q445: Ansible provides some methods for controlling how
Q446: Which difference between core modules and extra
Q447: When Ansible's connection state is set to
Q448: When specifying more than one conditional requirements
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents