summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2013-06-10 03:35:51 +0200
committerMichael DeHaan <michael@ansibleworks.com>2013-06-10 03:35:51 +0200
commit36e9cf5d7de049713784ed7c7005cc2269857e63 (patch)
treee18b73d40428d0fd01d3aa1fb9aaa8d1a5d57e78
parentAdd roles to glossary. (diff)
downloadansible-36e9cf5d7de049713784ed7c7005cc2269857e63.tar.xz
ansible-36e9cf5d7de049713784ed7c7005cc2269857e63.zip
Mention YAML variable quoting.
-rw-r--r--docsite/latest/rst/YAMLSyntax.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docsite/latest/rst/YAMLSyntax.rst b/docsite/latest/rst/YAMLSyntax.rst
index b8fb861cbb..ce15390bd3 100644
--- a/docsite/latest/rst/YAMLSyntax.rst
+++ b/docsite/latest/rst/YAMLSyntax.rst
@@ -95,6 +95,12 @@ You will want to quote any hash values using colons, like so:
And then the colon will be preserved.
+Further, Ansible uses "{{ var }}" for variables. If a value after a colon starts
+with a "{", YAML will think it a dictionary, so you must quote it, like so::
+
+ foo: "{{ variable }}"
+
+
.. seealso::
:doc:`playbooks`