Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



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:

Answer
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:

Answer
?

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:

Answer
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

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.