You can use the dirname
filter:
{{ inventory_dir | dirname }}
For reference, see Managing file names and path names in the docs.
You can use the dirname
filter:
{{ inventory_dir | dirname }}
For reference, see Managing file names and path names in the docs.