mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Add expandvars jinja2 filter (#38805)
* Add expandvars jinja2 filter * Add docs * Minor edit
This commit is contained in:
@@ -895,6 +895,14 @@ To expand a path containing a tilde (`~`) character (new in version 1.5)::
|
||||
|
||||
{{ path | expanduser }}
|
||||
|
||||
To expand a path containing environment variables::
|
||||
|
||||
{{ path | expandvars }}
|
||||
|
||||
.. note:: `expandvars` expands local variables; using it on remote paths can lead to errors.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
||||
To get the real path of a link (new in version 1.8)::
|
||||
|
||||
{{ path | realpath }}
|
||||
|
||||
Reference in New Issue
Block a user