ansible bug or what could be generating this stack trace?

Evening,

Ansible 1.9.2-1.el7.noarch

This is my task:

  • name: Extract the versions of the current mint rpm applications
    set_fact:
    rpm_versions: “{{ rpm_version_details.stdout | from_json }}”

This is how stdout looks like:

“rpm_version_details”: {

“changed”: true,

“cmd”: [

“sh”,

“/etc/ansible/pull_rpm_from_jenkins.sh”

],

“delta”: “0:00:00.682653”,

“end”: “2015-10-22 18:15:10.685200”,

“invocation”: {

“module_args”: “sh /etc/ansible/pull_rpm_from_jenkins.sh”,

“module_name”: “command”

},

“rc”: 0,

“start”: “2015-10-22 18:15:10.002547”,

“stderr”: “”,

“stdout”: “{\n"platform": "mint-platform-3.7.6.655.d05ccb9-236.noarch.rpm",\n"videos":"mint-videos-3.7.6.3300.e3f7ea8-236.noarch.rpm",\n"cds":"mint-cds-3.7.6.108.485d6af-236.noarch.rpm",\n"eas":"mint-eas-3.7.6.71.36db2e6-236.noarch.rpm"\n"tomcat_platform":"mint-tomcat-platform-7.0.42-236.noarch.rpm"\n"tomcat_videos":"mint-tomcat-videos-7.0.42-236.noarch.rpm"\n"tomcat_cds":"mint-tomcat-cds-7.0.42-236.noarch.rpm"\n"tomcat_eas":"mint-tomcat-eas-7.0.42-236.noarch.rpm"\n"tomcat":"mint-tomcat-7.0.42-236.noarch.rpm"\n}”,

“stdout_lines”: [

“{”,

“"platform": "mint-platform-3.7.6.655.d05ccb9-236.noarch.rpm",”,

“"videos":"mint-videos-3.7.6.3300.e3f7ea8-236.noarch.rpm",”,

“"cds":"mint-cds-3.7.6.108.485d6af-236.noarch.rpm",”,

“"eas":"mint-eas-3.7.6.71.36db2e6-236.noarch.rpm"”,

“"tomcat_platform":"mint-tomcat-platform-7.0.42-236.noarch.rpm"”,

“"tomcat_videos":"mint-tomcat-videos-7.0.42-236.noarch.rpm"”,

“"tomcat_cds":"mint-tomcat-cds-7.0.42-236.noarch.rpm"”,

“"tomcat_eas":"mint-tomcat-eas-7.0.42-236.noarch.rpm"”,

“"tomcat":"mint-tomcat-7.0.42-236.noarch.rpm"”,

“}”

],

“warnings”:

},

And this is what happen if I run the role:

TASK: [mintbe | Extract the versions of the current mint rpm applications] ****
<192.168.161.250> ESTABLISH CONNECTION FOR USER: william
fatal: [192.168.161.250] => Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/ansible/runner/init.py”, line 582, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File “/usr/lib/python2.7/site-packages/ansible/runner/init.py”, line 785, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File “/usr/lib/python2.7/site-packages/ansible/runner/init.py”, line 1009, in _executor_internal_inner
complex_args = template.template(self.basedir, complex_args, inject, fail_on_undefined=self.error_on_undefined_vars)
File “/usr/lib/python2.7/site-packages/ansible/utils/template.py”, line 138, in template
d[k] = template(basedir, v, templatevars, lookup_fatal, depth, expand_lists, convert_bare, fail_on_undefined, filter_fatal)
File “/usr/lib/python2.7/site-packages/ansible/utils/template.py”, line 122, in template
varname = template_from_string(basedir, varname, templatevars, fail_on_undefined)
File “/usr/lib/python2.7/site-packages/ansible/utils/template.py”, line 371, in template_from_string
res = jinja2.utils.concat(rf)
File “”, line 9, in root
File “/usr/lib64/python2.7/json/init.py”, line 338, in loads
return _default_decoder.decode(s)
File “/usr/lib64/python2.7/json/decoder.py”, line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib64/python2.7/json/decoder.py”, line 381, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting ‘,’ delimiter: line 6 column 1 (char 222)

FATAL: all hosts have already failed – aborting

What am.I doing wrong here?

Regards

William