summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/vars/strings.yml
blob: 6be848e6b64de85cc7d946cc3951a4e5cd6755c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
# Make sure that the Transformer does not mangle strings
# TODO: there is a bug in ruamel.yaml that discards some EOL comments

single: "single" # this is a comment
single_with_double: '"single" quoted' # this is a comment

single_multiline_with_octothorpe: # this EOL comment gets lost
  "single over 160 char line to force wrapping. over 160 char line to force wrapping. over 160 char line to force wrapping.
  over 160

  # this is not a comment"

double: "double" # this is a comment
double_with_single: "'double' quoted" # this is a comment

double_multiline_with_octothorpe: # this EOL comment gets lost
  "double over 160 char line to force wrapping. over 160 char line to force wrapping. over 160 char line to force wrapping.
  over 160

  # this is not a comment"

# this is a comment
folded_block_scalar_with_octothorpe: > # > EOL comment gets lost
  # this is not a comment

# this is a comment
folded_chomp_strip_block_scalar_with_octothorpe: >- # > EOL comment gets lost
  # this is not a comment

# this is a comment
folded_chomp_keep_block_scalar_with_octothorpe: >+ # > EOL comment gets lost
  # this is not a comment

# this is a comment
literal_block_scalar_with_octothorpe: | # this is a | EOL comment
  # this is not a comment

# this is a comment
literal_chomp_strip_block_scalar_with_octothorpe: |- # this is a | EOL comment
  # this is not a comment

# this is a comment
literal_chomp_keep_block_scalar_with_octothorpe: |+ # this is a | EOL comment
  # this is not a comment