Which variation of YAML does ansible use?

43 views
Skip to first unread message

Matthew Vernon

unread,
Jan 18, 2016, 8:26:19 AM1/18/16
to ansible...@googlegroups.com
Hi,

There are a number of different versions of YAML (1.0,1.1,1.2), and
within these versions choices that can be made about which tags to
include and so on.

Is the dialect of YAML that ansible uses defined anywhere? This isn't
just pedantry, it does make a difference (e.g. to which strings are
interpreted as booleans)...

Thanks,

Matthew

Matt Martz

unread,
Jan 18, 2016, 9:18:59 AM1/18/16
to ansible...@googlegroups.com
Ansible uses pyyaml as its YAML parser.  Per the pyyaml docs it is YAML 1.1. See http://pyyaml.org
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/569CCF30.2070501%40cam.ac.uk.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

mc...@cam.ac.uk

unread,
Jan 18, 2016, 10:52:26 AM1/18/16
to Ansible Project
Hi,


On Monday, 18 January 2016 14:18:59 UTC, Matt Martz wrote:
Ansible uses pyyaml as its YAML parser.  Per the pyyaml docs it is YAML 1.1. See http://pyyaml.org


...so as and when pyyaml moves to being YAML1.2 Ansible will just follow?

Matthew

Brian Coca

unread,
Jan 18, 2016, 10:54:52 AM1/18/16
to Ansible Project
Currently ansible states pyyaml as a requirement w/o specifying
version, unless some incompatibility appears that will continue to be
the case.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages