summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/filter/commonpath.yml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/plugins/filter/commonpath.yml')
-rw-r--r--lib/ansible/plugins/filter/commonpath.yml26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/ansible/plugins/filter/commonpath.yml b/lib/ansible/plugins/filter/commonpath.yml
deleted file mode 100644
index 6e333f06..00000000
--- a/lib/ansible/plugins/filter/commonpath.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-DOCUMENTATION:
- name: commonpath
- author: Shivam Durgbuns
- version_added: "2.15"
- short_description: gets the common path
- description:
- - Returns the longest common path from the given list of paths.
- options:
- _input:
- description: A list of paths.
- type: list
- elements: path
- required: true
- seealso:
- - plugin: ansible.builtin.basename
- plugin_type: filter
-EXAMPLES: |
-
- # To get the longest common path (for example - '/foo/bar') from the given list of paths
- # (for example - ['/foo/bar/foobar','/foo/bar'])
- {{ listofpaths | commonpath }}
-
-RETURN:
- _value:
- description: The longest common path from the given list of paths.
- type: path