template: expand path if metadata is in user home.
This commit is contained in:
parent
f2d9169672
commit
37e18dfb13
1 changed files with 2 additions and 1 deletions
3
template
3
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
|
||||
|
|
Loading…
Reference in a new issue