Question

In YAML, the following line will throw a syntax error due to inclusion of special charactors in the value of foo:

foo: {{ variable }}/additional/string/literal

Correct the above line:

foo: "{{ variable }}/additional/string/literal"

^^ NOTE the use of double quotes to wrap the entire value (not just the "{{ variable }}" bit)

Question

In YAML, the following line will throw a syntax error due to inclusion of special charactors in the value of foo:

foo: {{ variable }}/additional/string/literal

Correct the above line:

?

Question

In YAML, the following line will throw a syntax error due to inclusion of special charactors in the value of foo:

foo: {{ variable }}/additional/string/literal

Correct the above line:

foo: "{{ variable }}/additional/string/literal"

^^ NOTE the use of double quotes to wrap the entire value (not just the "{{ variable }}" bit)

If you want to change selection, open document below and click on "Move attachment"

YAML Syntax — Ansible Documentation
ote it, like so: foo: "{{ variable }}" If your value starts with a quote the entire value must be quoted, not just part of it. Here are some additional examples of how to properly quote things: <span>foo: "{{ variable }}/additional/string/literal" foo2: "{{ variable }}\\backslashes\\are\\also\\special\\characters" foo3: "even if it's just a string literal it must all be quoted" Not valid: foo: "E:\\path\\"rest\\of\\path In additi

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions