Tag Archives: ansib

Error: ansible requires a json module, none found

How to fix?

yum install python-simplejson

but not python-json

if you will install python-json you still get errors like:

“msg”: “Traceback (most recent call last):\n  File \”/root/.ansible/tmp/ansible-1381145464.17-139681524282507/command\”, line 1137, in ?\n    main()\n  File \”/root/.ansible/tmp/ansible-1381145464.17-139681524282507/command\”, line 155, in main\n    changed = True\n  File \”/root/.ansible/tmp/ansible-1381145464.17-139681524282507/command\”, line 911, in exit_json\n    print self.jsonify(kwargs)\n  File \”/root/.ansible/tmp/ansible-1381145464.17-139681524282507/command\”, line 901, in jsonify\n    return json.dumps(data)\nAttributeError: ‘module’ object has no attribute ‘dumps’\n”,