ansible-doctor/example/demo-role/defaults/main.yml

47 lines
1.4 KiB
YAML
Raw Normal View History

2019-10-08 11:03:45 +00:00
---
# @var demo_role_unset:description: Values can be plain strings, but there is no magic or autoformatting...
# @var demo_role_unset:example: demo_role_unset: some_value
2019-10-08 11:03:45 +00:00
demo_role_unset:
2019-10-08 11:03:45 +00:00
demo_role_empty: ""
demo_role_single: "b"
# @var demo_role_empty_dict:description: >
# ... or valid json can be used. In this case, the json will be automatically prefixed with the annotation key
# and filters like `to_nice_yaml` can be used in templates. To get it working, the json need to be prefixed with a `$`.
# @end
# @var demo_role_empty_dict:example: $ {"key1": {"sub": "some value"}, "key2": {"sublist": ["subval1", "subval2"]}}
2019-10-08 11:03:45 +00:00
demo_role_empty_dict: {}
# @var demo_role_dict:example: >
# demo_role_dict:
# key1:
# sub: some value
#
# # Inline description
2019-10-08 11:03:45 +00:00
# key2:
# sublist:
# - subval1
# - subval2
# @end
demo_role_dict:
key1:
sub: some value
# @var demo_role_undefined_var:description: >
# To highlight a variable that has not set a value by default, this is one way to achieve it.
# Make sure to flag it as json value: `@var demo_role_undefined_var: $ "_unset_"`
# @end
# @var demo_role_undefined_var: $ "_unset_"
2019-10-08 11:03:45 +00:00
# @var demo_role_other_tags:description: >
# If a variable need some more explanation, this is a good place to do so.
2019-10-08 11:03:45 +00:00
# @end
# @var demo_role_other_tags:example: $>
# [
# "package1",
# "package2"
# ]
# @end
2019-10-08 11:03:45 +00:00
demo_role_other_tags: []