# ansible refuse to execute command with "-p"

**URL:** <https://forum.ansible.com/t/ansible-refuse-to-execute-command-with-p/17970>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [April 14, 2015, 5:18am UTC](https://forum.ansible.com/t/ansible-refuse-to-execute-command-with-p/17970 "2015-04-14T05:18:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaniv\_refael](https://avatars.discourse-cdn.com/v4/letter/y/f07891/32.png) [@yaniv\_refael](https://forum.ansible.com/u/yaniv_refael)\
**Post date:** [April 14, 2015, 5:18am UTC](https://forum.ansible.com/t/ansible-refuse-to-execute-command-with-p/17970/1 "2015-04-14T05:18:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [April 14, 2015, 10:00pm UTC](https://forum.ansible.com/t/ansible-refuse-to-execute-command-with-p/17970/2 "2015-04-14T22:00:46Z")

</div>

It appears to be related to this issue  
[https://github.com/ansible/ansible/issues/10332](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.
