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


On Mon, Mar 23, 2015 at 1:30 PM, Arbab Nazar <[email protected]> wrote:

> 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,
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/caf92514-98f8-4bd0-bc51-1776d0bb2d1d%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/caf92514-98f8-4bd0-bc51-1776d0bb2d1d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v-gzhi34DSqkN33SMZ%2BCQSYnKKxH3AMhR4jxbC46vwjMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to