From 37e18dfb13e74d22f46fde5ceda11cea7b61c213 Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Tue, 17 Apr 2012 11:14:58 +0200 Subject: [PATCH] template: expand path if metadata is in user home. --- template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template b/template index 0b13422d5ab..31a2095e502 100755 --- a/template +++ b/template @@ -47,7 +47,8 @@ for x in items: source = params['src'] dest = params['dest'] -metadata = params.get('metadata', '/etc/ansible/setup') +metadata = params.get('metadata', '/etc/ansible/setup') +metadata = os.path.expanduser(metadata) module_vars = params.get('vars') # raise an error if there is no template metadata