From f5505425f9391af00f58518b4e2c2b42c9342557 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 20 Feb 2014 13:47:13 -0500 Subject: [PATCH] Adding 'expanduser' filter to the core filters list Example usage: {{ my_path | expanduser }} # my_path: "~/path/to/file" --- lib/ansible/runner/filter_plugins/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner/filter_plugins/core.py b/lib/ansible/runner/filter_plugins/core.py index 623e770dea8..a99b17f67a1 100644 --- a/lib/ansible/runner/filter_plugins/core.py +++ b/lib/ansible/runner/filter_plugins/core.py @@ -164,6 +164,7 @@ class FilterModule(object): # path 'basename': os.path.basename, 'dirname': os.path.dirname, + 'expanduser': os.path.expanduser, 'realpath': os.path.realpath, # failure testing