Created
December 15, 2013 19:27
-
-
Save jruels/7977003 to your computer and use it in GitHub Desktop.
JSON stack trace - adding PPA with Ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Add MySQL 5.6 PPA | |
command: '/usr/bin/add-apt-repository -y ppa:ondrej/mysql-5.6' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TASK: [mysql | Add MySQL 5.6 PPA] ********************************************* | |
failed to parse json: changed = True | |
File "/root/.ansible/tmp/ansible-1387085726.11-159416578243861/command", line 996, in exit_json | |
print self.jsonify(kwargs) | |
File "/root/.ansible/tmp/ansible-1387085726.11-159416578243861/command", line 986, in jsonify | |
return json.dumps(data) | |
File "/usr/lib/python2.7/json/__init__.py", line 243, in dumps | |
return _default_encoder.encode(obj) | |
File "/usr/lib/python2.7/json/encoder.py", line 207, in encode | |
chunks = self.iterencode(o, _one_shot=True) | |
File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode | |
return _iterencode(o, 0) | |
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfd in position 281: invalid start byte | |
fatal: [ansibledb1] => Traceback (most recent call last): | |
File "/Library/Python/2.7/site-packages/ansible/runner/__init__.py", line 394, in _executor | |
exec_rc = self._executor_internal(host, new_stdin) | |
File "/Library/Python/2.7/site-packages/ansible/runner/__init__.py", line 485, in _executor_internal | |
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args) | |
File "/Library/Python/2.7/site-packages/ansible/runner/__init__.py", line 685, in _executor_internal_inner | |
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args) | |
File "/Library/Python/2.7/site-packages/ansible/runner/action_plugins/normal.py", line 54, in run | |
return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args) | |
File "/Library/Python/2.7/site-packages/ansible/runner/__init__.py", line 369, in _execute_module | |
data = utils.parse_json(res['stdout']) | |
File "/Library/Python/2.7/site-packages/ansible/utils/__init__.py", line 306, in parse_json | |
tokens = shlex.split(data) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 279, in split | |
return list(lex) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 269, in next | |
token = self.get_token() | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shlex.py", line 96, in get_token | |
raw = self.read_token() | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment