Merge pull request #14484 from Antillean/extra-vars_docs
Documenting that extra-vars 'key=value' is for strings
This commit is contained in:
commit
00312723b2
1 changed files with 3 additions and 0 deletions
|
@ -730,6 +730,9 @@ As of Ansible 1.2, you can also pass in extra vars as quoted JSON, like so::
|
|||
|
||||
The ``key=value`` form is obviously simpler, but it's there if you need it!
|
||||
|
||||
.. note:: Values passed in using the ``key=value`` syntax are interpreted as strings.
|
||||
Use the JSON format if you need to pass in anything that shouldn't be a string (Booleans, integers, floats, lists etc).
|
||||
|
||||
As of Ansible 1.3, extra vars can be loaded from a JSON file with the ``@`` syntax::
|
||||
|
||||
--extra-vars "@some_file.json"
|
||||
|
|
Loading…
Reference in a new issue