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.
On Tue, Apr 14, 2015 at 1:18 AM, yaniv refael <[email protected]> wrote: > 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? > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/359339ed-df0e-4e55-ad7b-a2a6559eaf5f%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/359339ed-df0e-4e55-ad7b-a2a6559eaf5f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAH%2BKTJ5dzADZp-%2B%2B5jCO12idOaME4OPB_WF2otyNqMffR4F9bA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
