<div dir="ltr">I think it's more of a YAML question, so I checked Wikipedia - <a href="https://en.wikipedia.org/wiki/YAML">https://en.wikipedia.org/wiki/YAML</a><br><br>YAML autodetects the datatype of the entity, but sometimes one wants to cast the datatype explicitly. The most common situation is where a single-word string that looks like a number, boolean or tag requires disambiguation by surrounding it with quotes or using an explicit datatype tag.<br><br>---<br>a: 123                     # an integer<br>b: "123"                   # a string, disambiguated by quotes<br>c: 123.0                   # a float<br>d: !!float 123             # also a float via explicit data type prefixed by (!!)<br>e: !!str 123               # a string, disambiguated by explicit type<br>f: !!str Yes               # a string via explicit type<br>g: Yes                     # a boolean True (yaml1.1), string "Yes" (yaml1.2)<br><div>h: Yes we have No bananas  # a string, "Yes" and "No" disambiguated by context.</div><div><br></div><div>So I believe Ansible (via YAML) would autodetect this ...</div><div>---<br></div><div>my_greeting: Hello World!</div><div><br></div><div>... as a string. It looks like I could disambiguate this with quotes, but in practice I like leaving off the quotes because I find it a bit easier to read when there are many variables being defined.<br></div><br></div>