which syntax is right for latest ansible

39 views
Skip to first unread message

Arbab Nazar

unread,
Mar 23, 2015, 2:30:19 PM3/23/15
to ansible...@googlegroups.com
Which syntax is correct for latest ansible?

for example:

sudo: True

or 

sudo: yes

Although both are working fine, but which is the recommended way from latest ansible? using True/False or yes/no?

Thanks,

Matt Martz

unread,
Mar 23, 2015, 2:37:39 PM3/23/15
to ansible...@googlegroups.com
Both are fine.  According to YAML they are both booleans.  You can see what YAML treats as booleans at http://yaml.org/type/bool.html

Basically it is:

y, Y, yes, Yes, YES, n, N, no, No, NO, true, True, TRUE, false, False, FALSE, on, On, ON, off, Off, OFF


--
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/caf92514-98f8-4bd0-bc51-1776d0bb2d1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages