quotes in stderr response is throwing this error:

I am not sure how to escape this properly and why i have to do it at all?



failed: [ec2-54-211-211-140.compute-1.amazonaws.com] => {"changed": true, 
"cmd": "/var/lib/immutant/current/jboss/bin/smoke-test-switchboard-api.sh 
", "delta": "0:00:00.058325", "end": "2014-03-27 18:56:35.972889", "item": 
"", "rc": 7, "start": "2014-03-27 18:56:35.914564"}
stderr:   % Total    % Received % Xferd  Average Speed   Time    Time     
Time  Current
                                 Dload  Upload   Total   Spent    Left 
 Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--   
  0curl: (7) couldn't connect to host
...ignoring

TASK: [app-deploy | debug msg="curl reponse {{test_curl_output}}"] 
************
<ec2-54-211-211-140.compute-1.amazonaws.com> ESTABLISH CONNECTION FOR USER: 
ubuntu
fatal: [ec2-54-211-211-140.compute-1.amazonaws.com] => Traceback (most 
recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", 
line 530, in _executor
    exec_rc = self._executor_internal(host, new_stdin)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", 
line 621, in _executor_internal
    return self._executor_internal_inner(host, self.module_name, 
self.module_args, inject, port, complex_args=complex_args)
  File "/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py", 
line 807, in _executor_internal_inner
    result = handler.run(conn, tmp, module_name, module_args, inject, 
complex_args)
  File 
"/usr/local/lib/python2.7/dist-packages/ansible/runner/action_plugins/debug.py",
 
line 41, in run
    kv = utils.parse_kv(module_args)
  File "/usr/local/lib/python2.7/dist-packages/ansible/utils/__init__.py", 
line 525, in parse_kv
    vargs = [x.decode('utf-8') for x in shlex.split(args, posix=True)]
  File "/usr/lib/python2.7/shlex.py", line 279, in split
    return list(lex)
  File "/usr/lib/python2.7/shlex.py", line 269, in next
    token = self.get_token()
  File "/usr/lib/python2.7/shlex.py", line 96, in get_token
    raw = self.read_token()
  File "/usr/lib/python2.7/shlex.py", line 172, in read_token
    raise ValueError, "No closing quotation"
ValueError: No closing quotation


FATAL: all hosts have already failed -- aborting

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/01b60853-3214-4335-ad0b-27887edb98c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to