Skip to main content

Ansible requires python-simplejson when Python version is 2.4

Ansible requires python-simplejson package when python version is 2.4. | FAILED >> {
    "failed": true,
    "msg": "Error: ansible requires a json module, none found!OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: mux_client_request_session: master session id: 2\r\nShared connection to closed.\r\n",
    "parsed": false

On Redhat 5, following package should be installed:

# rpm -ivh python-simplejson-2.0.9-8.el5.x86_64.rpm

Then from ansible:

# ansible server11 -m ping | success >> {
    "changed": false,
    "ping": "pong"


Popular posts from this blog