| 1 |
--- |
| 2 |
# ^ too many newlines before |
| 3 |
foo: bar # This is a comment has extra spaces preceding it |
| 4 |
|
| 5 |
fruits: # unindented sequence: |
| 6 |
- apple |
| 7 |
- orange |
| 8 |
vegetables: # indented sequence: |
| 9 |
- onion |
| 10 |
- carrot |
| 11 |
|
| 12 |
quoting: |
| 13 |
- "that should have double quotes" |
| 14 |
- "that should remain in single quotes" |
| 15 |
- 'a string with " inside' |
| 16 |
# next line has some undesired trailing spaces: |
| 17 |
- "a string with ' inside" |
| 18 |
- can't be sure! |
| 19 |
# next line should be converted to use double quotes: |
| 20 |
- ["foo", "bar"] |
| 21 |
|
| 22 |
inline-dictionary: |
| 23 |
- { foo: bar } # should add some spacing between curly braces and content |
| 24 |
- { foo2: bar2 } # should reduce spacing between curly braces and content |
| 25 |
|
| 26 |
# YAML 1.1 Boolean-hell: https://yaml.org/type/bool.html |
| 27 |
booleans-true: |
| 28 |
preferred: true # YAML 1.2 compatible! |
| 29 |
answer-1.1: true |
| 30 |
canonical-1.1: true |
| 31 |
canonical-upper-1.1: true |
| 32 |
logical-1.1: true |
| 33 |
option-1.1: true |
| 34 |
booleans-false: |
| 35 |
preferred: false # YAML 1.2 compatible! |
| 36 |
answer-1.1: false |
| 37 |
canonical-1.1: false |
| 38 |
canonical-upper-1.1: false |
| 39 |
logical-1.1: false |
| 40 |
option-1.1: false |
| 41 |
|
| 42 |
# ^ double newline should be removed |
| 43 |
overly-indented-vault-value: !vault | |
| 44 |
$ANSIBLE_VAULT;1.1;AES256 |
| 45 |
123466303630313 |
| 46 |
|
| 47 |
# this file also has 3 newlines at end-of-file instead of one |