mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add an example of JSON extra variables on the command line.
This commit is contained in:
parent
b19609b98b
commit
fbba92b61e
1 changed files with 7 additions and 0 deletions
|
@ -258,6 +258,13 @@ Example::
|
||||||
|
|
||||||
ansible-playbook release.yml --extra-vars "hosts=vipers user=starbuck"
|
ansible-playbook release.yml --extra-vars "hosts=vipers user=starbuck"
|
||||||
|
|
||||||
|
As of Ansible 1.2, you can also pass in extra vars as quoted JSON, like so::
|
||||||
|
|
||||||
|
--extra-vars "{'pacman':'mrs','ghosts':['inky','pinky','clyde','sue']}"
|
||||||
|
|
||||||
|
The key=value form is obviously simpler, but it's there if you need it!
|
||||||
|
|
||||||
|
|
||||||
Conditional Execution
|
Conditional Execution
|
||||||
`````````````````````
|
`````````````````````
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue