ansible refuse to execute command with "-p"

174 views
Skip to first unread message

yaniv refael

unread,
Apr 14, 2015, 1:18:54 AM4/14/15
to ansible...@googlegroups.com
Hi,

My host machine is windows 8.1 and the guest is widows 2012 R2
I have simple command that I run with power shell with ansible  "dsmcl -p 123456".
I get the flowing error: 

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ansible/runner/connection_plugins/winrm.py", line 149, in exec_command
    result = self._winrm_exec(cmd_parts[0], cmd_parts[1:], from_exec=True)
  File "/usr/lib/python2.7/site-packages/ansible/runner/connection_plugins/winrm.py", line 124, in _winrm_exec
    vvvvv('WINRM STDERR %s' % response.std_err, host=self.host)
  File "/usr/lib/python2.7/site-packages/ansible/runner/connection_plugins/winrm.py", line 45, in vvvvv
    verbose(msg, host=host, caplevel=4)
  File "/usr/lib/python2.7/site-packages/ansible/callbacks.py", line 190, in verbose
    msg = utils.sanitize_output(msg)
  File "/usr/lib/python2.7/site-packages/ansible/utils/__init__.py", line 1002, in sanitize_output
    parts = parse_kv(str)
  File "/usr/lib/python2.7/site-packages/ansible/utils/__init__.py", line 793, in parse_kv
    vargs = split_args(args)
  File "/usr/lib/python2.7/site-packages/ansible/module_utils/splitter.py", line 184, in split_args
    raise Exception("error while splitting arguments, either an unbalanced jinja2 block or quotes")
Exception: error while splitting arguments, either an unbalanced jinja2 block or quotes

if I execute the same command with any other letter (except -p it works fine)

nay suggestion?

Chris Church

unread,
Apr 14, 2015, 6:01:13 PM4/14/15
to ansible...@googlegroups.com
It appears to be related to this issue https://github.com/ansible/ansible/issues/10332 which has been fixed in 1.9, so I'd suggest updating to the latest version of ansible.


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/359339ed-df0e-4e55-ad7b-a2a6559eaf5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages