auto-update documentation
This commit is contained in:
parent
73bad7b42d
commit
8fe9909a17
@ -1,10 +0,0 @@
|
||||
---
|
||||
title: general
|
||||
geekdocFlatSection: true
|
||||
---
|
||||
|
||||
General custom content collection for Ansible.
|
||||
|
||||
<!-- spellchecker-disable -->
|
||||
{{< toc-tree >}}
|
||||
<!-- spellchecker-enable -->
|
@ -1,3 +0,0 @@
|
||||
---
|
||||
title: Filters
|
||||
---
|
@ -1,26 +0,0 @@
|
||||
Simple filter to prefix all items from a list. Default prefix will be `--` but you can also pass a custom one.
|
||||
|
||||
## Example
|
||||
|
||||
```Yaml
|
||||
my_list:
|
||||
- item1
|
||||
- item2
|
||||
|
||||
{{ my_list | prefix | join(' ') }}
|
||||
|
||||
# result:
|
||||
# "--item1 --item2"
|
||||
```
|
||||
|
||||
Or pass a custom prefix:
|
||||
```Yaml
|
||||
my_list:
|
||||
- item1
|
||||
- item2
|
||||
|
||||
{{ my_list | prefix(prefix='-') | join(' ') }}
|
||||
|
||||
# result:
|
||||
# "-item1 -item2"
|
||||
```
|
@ -1,26 +0,0 @@
|
||||
Simple filter to wrap all items form a list. Default will wrap items in single quotes but you can also pass a custom wrapper character.
|
||||
|
||||
## Example
|
||||
|
||||
```Yaml
|
||||
my_list:
|
||||
- item1
|
||||
- item2
|
||||
|
||||
{{ my_list | wrap | join(',') }}
|
||||
|
||||
# result:
|
||||
# "'item1','item2'"
|
||||
```
|
||||
|
||||
Or pass a custom wrapper:
|
||||
```Yaml
|
||||
my_list:
|
||||
- item1
|
||||
- item2
|
||||
|
||||
{{ my_list | wrap(wrapper='/') | join(',') }}
|
||||
|
||||
# result:
|
||||
# "/item1/,/item2/"
|
||||
```
|
Loading…
Reference in New Issue
Block a user