diff options
author | Kamal Wood <kamalwood@hotmail.com> | 2016-02-15 14:06:21 +0000 |
---|---|---|
committer | Kamal Wood <kwood@deloitte.co.uk> | 2016-02-15 14:13:39 +0000 |
commit | 0c1395ed2fe9fff55f1da112f183f38fc117a0cb (patch) | |
tree | 0abdf9a6c52c6e1567c0bf061b8c0956a707d16f | |
parent | d47aa3c1bc786a150a4617ce031d618b7373437a (diff) | |
download | ansible-0c1395ed2fe9fff55f1da112f183f38fc117a0cb.tar.gz |
Documenting that values passed in using the extra-vars 'key=value' syntax are interpreted as strings.
-rw-r--r-- | docsite/rst/playbooks_variables.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docsite/rst/playbooks_variables.rst b/docsite/rst/playbooks_variables.rst index 122c0ef923..47277b0bce 100644 --- a/docsite/rst/playbooks_variables.rst +++ b/docsite/rst/playbooks_variables.rst @@ -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" |