mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 12:03:58 -07:00
Add splitext filter
This commit is contained in:
parent
d612838116
commit
4059904a18
2 changed files with 6 additions and 0 deletions
|
@ -350,6 +350,11 @@ To get the relative path of a link, from a start point (new in version 1.7)::
|
|||
|
||||
{{ path | relpath('/etc') }}
|
||||
|
||||
To get the root and extension of a path or filename (new in version 2.0)::
|
||||
|
||||
# with path == 'nginx.conf' the return would be ('nginx', '.conf')
|
||||
{{ path | splitext }}
|
||||
|
||||
To work with Base64 encoded strings::
|
||||
|
||||
{{ encoded | b64decode }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue