2019-10-09 21:25:33 +00:00
|
|
|
# demo-role-custom-header
|
|
|
|
|
2021-01-17 14:23:46 +00:00
|
|
|
[![Build Status](https://img.shields.io/drone/build/thegeeklab/ansible-doctor?logo=drone&server=https%3A%2F%2Fdrone.thegeeklab.de)](https://drone.thegeeklab.de/thegeeklab/ansible-doctor)
|
2020-12-31 14:06:20 +00:00
|
|
|
[![License: GPL-3.0](https://img.shields.io/github/license/thegeeklab/ansible-doctor)](https://github.com/thegeeklab/ansible-doctor/blob/main/LICENSE)
|
2019-10-08 11:03:45 +00:00
|
|
|
|
2023-02-09 18:27:22 +00:00
|
|
|
Role to demonstrate ansible-doctor. It is also possible to overwrite
|
|
|
|
the default description with an annotation.
|
2019-10-08 11:03:45 +00:00
|
|
|
|
2019-10-08 11:43:41 +00:00
|
|
|
## Table of content
|
|
|
|
|
2021-01-17 14:10:33 +00:00
|
|
|
- [Default Variables](#default-variables)
|
|
|
|
- [demo_role_dict](#demo_role_dict)
|
|
|
|
- [demo_role_empty](#demo_role_empty)
|
|
|
|
- [demo_role_empty_dict](#demo_role_empty_dict)
|
|
|
|
- [demo_role_other_tags](#demo_role_other_tags)
|
2022-04-12 20:12:50 +00:00
|
|
|
- [demo_role_override](#demo_role_override)
|
|
|
|
- [demo_role_override_complex](#demo_role_override_complex)
|
2021-01-17 14:10:33 +00:00
|
|
|
- [demo_role_single](#demo_role_single)
|
|
|
|
- [demo_role_undefined_var](#demo_role_undefined_var)
|
|
|
|
- [demo_role_unset](#demo_role_unset)
|
2022-02-26 12:35:34 +00:00
|
|
|
- [Discovered Tags](#discovered-tags)
|
|
|
|
- [Open Tasks](#open-tasks)
|
2021-01-17 14:10:33 +00:00
|
|
|
- [Dependencies](#dependencies)
|
|
|
|
- [License](#license)
|
|
|
|
- [Author](#author)
|
2019-10-08 11:43:41 +00:00
|
|
|
|
2019-10-08 11:28:58 +00:00
|
|
|
---
|
2019-10-15 07:54:03 +00:00
|
|
|
|
2019-10-08 11:43:41 +00:00
|
|
|
## Default Variables
|
2019-10-08 11:03:45 +00:00
|
|
|
|
2020-12-31 13:50:42 +00:00
|
|
|
### demo_role_dict
|
2019-10-15 07:54:03 +00:00
|
|
|
|
2019-10-08 11:03:45 +00:00
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2020-12-31 13:50:42 +00:00
|
|
|
demo_role_dict:
|
|
|
|
key1:
|
|
|
|
sub: some value
|
2019-10-08 11:03:45 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
2020-12-31 13:50:42 +00:00
|
|
|
demo_role_dict:
|
|
|
|
key1:
|
|
|
|
sub: some value
|
2022-02-19 13:58:35 +00:00
|
|
|
|
|
|
|
# Inline description
|
2020-12-31 13:50:42 +00:00
|
|
|
key2:
|
|
|
|
sublist:
|
|
|
|
- subval1
|
|
|
|
- subval2
|
2019-10-08 11:03:45 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### demo_role_empty
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
demo_role_empty: ''
|
|
|
|
```
|
|
|
|
|
|
|
|
### demo_role_empty_dict
|
|
|
|
|
2023-02-09 18:27:22 +00:00
|
|
|
... 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 `$`.
|
2019-10-15 07:54:03 +00:00
|
|
|
|
2019-10-08 11:03:45 +00:00
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
demo_role_empty_dict: {}
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
demo_role_empty_dict:
|
|
|
|
key1:
|
|
|
|
sub: some value
|
|
|
|
key2:
|
|
|
|
sublist:
|
|
|
|
- subval1
|
|
|
|
- subval2
|
|
|
|
```
|
|
|
|
|
|
|
|
### demo_role_other_tags
|
|
|
|
|
2019-10-08 12:57:46 +00:00
|
|
|
If a variable need some more explanation, this is a good place to do so.
|
2019-10-08 11:03:45 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
demo_role_other_tags: []
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
2019-10-11 06:59:38 +00:00
|
|
|
demo_role_other_tags:
|
2019-10-08 11:03:45 +00:00
|
|
|
- package1
|
|
|
|
- package2
|
|
|
|
```
|
|
|
|
|
2022-04-12 20:12:50 +00:00
|
|
|
### demo_role_override
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
demo_role_override: test
|
|
|
|
```
|
|
|
|
|
|
|
|
### demo_role_override_complex
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
demo_role_override_complex:
|
|
|
|
foo: bar
|
|
|
|
second: value
|
|
|
|
```
|
|
|
|
|
2020-12-31 13:50:42 +00:00
|
|
|
### demo_role_single
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
demo_role_single: b
|
|
|
|
```
|
|
|
|
|
2019-10-08 11:03:45 +00:00
|
|
|
### demo_role_undefined_var
|
|
|
|
|
2023-02-09 18:27:22 +00:00
|
|
|
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_"`
|
|
|
|
|
|
|
|
| Attribute | Description |
|
|
|
|
| --- | --- |
|
|
|
|
| value1 | desc1 |
|
2022-02-19 13:58:35 +00:00
|
|
|
|
2019-10-08 11:03:45 +00:00
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
2019-10-15 07:54:03 +00:00
|
|
|
demo_role_undefined_var: _unset_
|
2019-10-08 11:03:45 +00:00
|
|
|
```
|
|
|
|
|
2020-12-31 13:50:42 +00:00
|
|
|
### demo_role_unset
|
|
|
|
|
2022-02-21 20:38:47 +00:00
|
|
|
Values can be plain strings, but there is no magic or autoformatting...
|
2020-12-31 13:50:42 +00:00
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
demo_role_unset:
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
demo_role_unset: some_value
|
|
|
|
```
|
|
|
|
|
2022-02-26 12:35:34 +00:00
|
|
|
## Discovered Tags
|
|
|
|
|
2022-05-17 12:19:31 +00:00
|
|
|
**_role-tag1_**
|
|
|
|
|
2022-02-26 12:35:34 +00:00
|
|
|
**_role-tag2_**
|
|
|
|
|
|
|
|
**_single-tag_**\
|
|
|
|
 Example description of tag `single-tag`
|
|
|
|
|
2022-02-21 20:38:47 +00:00
|
|
|
## Open Tasks
|
|
|
|
|
|
|
|
- Unscoped general todo.
|
|
|
|
- (bug): Some bug that is known and need to be fixed.
|
|
|
|
- (bug): Multi line description are possible as well. Some bug that is known and need to be fixed.
|
|
|
|
- (improvement): Some things that need to be improved.
|
|
|
|
|
2019-10-08 11:03:45 +00:00
|
|
|
## Dependencies
|
|
|
|
|
2022-05-17 12:19:31 +00:00
|
|
|
- role1
|
|
|
|
- role2
|
2019-10-08 11:03:45 +00:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
MIT
|
|
|
|
|
|
|
|
## Author
|
|
|
|
|
2023-01-22 14:02:09 +00:00
|
|
|
[John Doe](https://blog.example.com)
|