1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Documenting that values passed in using the extra-vars 'key=value' syntax are interpreted as strings.

This commit is contained in:
Kamal Wood 2016-02-15 14:06:21 +00:00 committed by Kamal Wood
parent d47aa3c1bc
commit 0c1395ed2f

View file

@ -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! 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:: As of Ansible 1.3, extra vars can be loaded from a JSON file with the ``@`` syntax::
--extra-vars "@some_file.json" --extra-vars "@some_file.json"