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