Commit ee95a5b0 by Seth Vidal

use shlex.split() instead of split() to keep quoting sane for commands

parent 8d555ff5
......@@ -25,6 +25,7 @@ from optparse import OptionParser
import json
import os
import getpass
import shlex
import ansible.runner
import ansible.playbook
import ansible.constants as C
......@@ -68,7 +69,7 @@ class Cli(object):
return ansible.runner.Runner(
module_name=options.module_name,
module_path=options.module_path,
module_args=options.module_args.split(' '),
module_args=shlex.split(options.module_args),
remote_user=options.remote_user,
remote_pass=sshpass,
host_list=options.host_list,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment