add bool var to examples

This commit is contained in:
Robert Kaussow 2024-10-03 14:52:30 +02:00
parent bc39d9f957
commit e85b64fa60
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 33 additions and 0 deletions

View File

@ -10,6 +10,8 @@ the default description with an annotation.
- [Requirements](#requirements) - [Requirements](#requirements)
- [Default Variables](#default-variables) - [Default Variables](#default-variables)
- [demo_bool](#demo_bool)
- [demo_bool_up](#demo_bool_up)
- [demo_role_deprecated](#demo_role_deprecated) - [demo_role_deprecated](#demo_role_deprecated)
- [demo_role_deprecated_info](#demo_role_deprecated_info) - [demo_role_deprecated_info](#demo_role_deprecated_info)
- [demo_role_dict](#demo_role_dict) - [demo_role_dict](#demo_role_dict)
@ -35,6 +37,34 @@ the default description with an annotation.
## Default Variables ## Default Variables
### demo_bool
#### Default value
```YAML
demo_bool: true
```
#### Example usage
```YAML
demo_bool: false
```
### demo_bool_up
#### Default value
```YAML
demo_bool_up: true
```
#### Example usage
```YAML
demo_bool_up: 'False'
```
### demo_role_deprecated ### demo_role_deprecated
**_Deprecated_**<br /> **_Deprecated_**<br />

View File

@ -6,6 +6,9 @@ demo_role_unset:
demo_role_empty: "" demo_role_empty: ""
demo_role_single: "b" demo_role_single: "b"
# @var demo_bool:example: $ false
demo_bool: true
# @var demo_role_empty_dict:description: > # @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 # ... 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 `$`. # and filters like `to_nice_yaml` can be used in templates. To get it working, the json need to be prefixed with a `$`.