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,
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,
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