List of questions
Related questions
Question 277 - DOP-C01 discussion
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"
Your answer:
0 comments
Sorted by
Leave a comment first