Quote long variables in playbooks when feeding them to the setup command

This commit is contained in:
Michael DeHaan 2012-03-18 19:50:22 -04:00
parent 5371a9e497
commit c1fe0dd719
3 changed files with 6 additions and 2 deletions

View file

@ -449,7 +449,7 @@ class PlayBook(object):
# magic in Runner()
push_var_str=''
for (k,v) in vars.iteritems():
push_var_str += "%s=%s " % (k,v)
push_var_str += "%s=\"%s\" " % (k,v)
# push any variables down to the system
setup_results = ansible.runner.Runner(