mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 11:40:22 -07:00
Templating as non-root should not require passing in the metadata= parameter.
This commit is contained in:
parent
4ee4ddcd7c
commit
0935506d6f
2 changed files with 20 additions and 3 deletions
|
@ -306,8 +306,6 @@ class PlayBook(object):
|
|||
push_var_str=''
|
||||
for (k,v) in vars.items():
|
||||
push_var_str += "%s=%s " % (k,v)
|
||||
if user != 'root':
|
||||
push_var_str = "%s metadata=~/.ansible_setup" % (push_var_str)
|
||||
|
||||
# push any variables down to the system
|
||||
setup_results = ansible.runner.Runner(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue