Skip to content

Instantly share code, notes, and snippets.

@dalekurt
Created November 27, 2014 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalekurt/072d4d695b6d2777dd20 to your computer and use it in GitHub Desktop.
Save dalekurt/072d4d695b6d2777dd20 to your computer and use it in GitHub Desktop.
Ansible-error
ansible -m ping -u ubuntu all
Traceback (most recent call last):
File "/usr/local/Cellar/ansible/1.8.1/libexec/bin/ansible", line 194, in <module>
(runner, results) = cli.run(options, args)
File "/usr/local/Cellar/ansible/1.8.1/libexec/bin/ansible", line 112, in run
inventory_manager = inventory.Inventory(options.inventory, vault_password=vault_pass)
File "/usr/local/Cellar/ansible/1.8.1/libexec/lib/python2.7/site-packages/ansible/inventory/__init__.py", line 118, in __init__
self.parser = InventoryScript(filename=host_list)
File "/usr/local/Cellar/ansible/1.8.1/libexec/lib/python2.7/site-packages/ansible/inventory/script.py", line 49, in __init__
self.groups = self._parse(stderr)
File "/usr/local/Cellar/ansible/1.8.1/libexec/lib/python2.7/site-packages/ansible/inventory/script.py", line 57, in _parse
self.raw = utils.parse_json(self.data)
File "/usr/local/Cellar/ansible/1.8.1/libexec/lib/python2.7/site-packages/ansible/utils/__init__.py", line 552, in parse_json
results = json.loads(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment