Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Yunus_Badar
Participant
Jump to solution

APIResponse received a response which is not a valid JSON

Hello All:

While testing demo-playbook.yml, I get the following error. Any ideas as to why the response is invalid? 

api status -s outout attached

[root@Ansible-Cent Playbooks]# ansible-playbook -C demo-playbook.yml

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
ok: [127.0.0.1]

TASK [login] *******************************************************************
ok: [127.0.0.1]

TASK [add host] ****************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Command 'add-host {u'name': u'host_demo_1', u'ip-address': u'1.1.1.1'}' failed with error message: APIResponse received a response which is not a valid JSON.. All changes are discarded and the session is invalidated."}
to retry, use: --limit @/root/cpAnsible/Playbooks/demo-playbook.retry

PLAY RECAP *********************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=1

0 Kudos
6 Replies
This widget could not be displayed.

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events