Add documentation on YAML floating-point values (#17182)
parent
ad7448d24c
commit
3e041a82c4
|
@ -143,6 +143,14 @@ In these cases just use quotes::
|
||||||
other_string: "False"
|
other_string: "False"
|
||||||
|
|
||||||
|
|
||||||
|
YAML converts certain strings into floating-point values, such as the string
|
||||||
|
`1.0`. If you need to specify a version number (in a requirements.yml file, for
|
||||||
|
example), you will need to quote the value if it looks like a floating-point
|
||||||
|
value::
|
||||||
|
|
||||||
|
version: "1.0"
|
||||||
|
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
||||||
:doc:`playbooks`
|
:doc:`playbooks`
|
||||||
|
|
|
@ -132,7 +132,7 @@ Use the following example as a guide for specifying roles in *requirements.yml*:
|
||||||
# from GitLab or other git-based scm
|
# from GitLab or other git-based scm
|
||||||
- src: git@gitlab.company.com:mygroup/ansible-base.git
|
- src: git@gitlab.company.com:mygroup/ansible-base.git
|
||||||
scm: git
|
scm: git
|
||||||
version: 0.1.0
|
version: "0.1" # quoted, so YAML doesn't parse this as a floating-point value
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
============
|
============
|
||||||
|
|
Loading…
Reference in New Issue