mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
template: expand path if metadata is in user home.
This commit is contained in:
parent
da6cb1ca6e
commit
9e0b7ee629
1 changed files with 2 additions and 1 deletions
|
@ -48,6 +48,7 @@ for x in items:
|
||||||
source = params['src']
|
source = params['src']
|
||||||
dest = params['dest']
|
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')
|
module_vars = params.get('vars')
|
||||||
|
|
||||||
# raise an error if there is no template metadata
|
# raise an error if there is no template metadata
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue