Mention YAML variable quoting.
This commit is contained in:
parent
36c3c91d6e
commit
36e9cf5d7d
1 changed files with 6 additions and 0 deletions
|
@ -95,6 +95,12 @@ You will want to quote any hash values using colons, like so:
|
||||||
|
|
||||||
And then the colon will be preserved.
|
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::
|
.. seealso::
|
||||||
|
|
||||||
:doc:`playbooks`
|
:doc:`playbooks`
|
||||||
|
|
Loading…
Reference in a new issue