Hi @ansible folks,
Recently I found an Ansible error while installing Opnfv-Apex. I’m getting the below error message while deploying. It seems to be Ansible playbook failed error.
Error Message :
2019-05-27 20:45:16,635 INFO: TASK [include_tasks] ***********************************************************
task path: /usr/share/opnfv-apex/ansible/playbooks/prepare_overcloud_containers.yml:31
fatal: [192.168.122.244]: FAILED! => {“msg”: "The conditional check ‘item in (response.json)[‘repositories’]|join(" ")’ failed. The error was: error while evaluating conditional (item in (response.json)[‘repositories’]|join(" ")): ‘dict object’ has no attribute ‘json’
The error appears to be in ‘/usr/share/opnfv-apex/ansible/playbooks/prepare_overcloud_containers.yml’: line 31, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
register: response
- include_tasks: patch_containers.yml
^ here
"}
2019-05-27 20:45:16,635 INFO: PLAY RECAP *********************************************************************
192.168.122.244 : ok=5 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
2019-05-27 20:45:16,671 ERROR: Ansible playbook failed. See Ansible logs for details.
2019-05-27 20:45:16,671 ERROR: Unable to complete container prep on Undercloud
Traceback (most recent call last):
File “/bin/opnfv-deploy”, line 10, in
sys.exit(main())
File “/usr/lib/python3.4/site-packages/apex/deploy.py”, line 535, in main
tmp_dir=APEX_TEMP_DIR)
File “/usr/lib/python3.4/site-packages/apex/common/utils.py”, line 146, in run_ansible
raise Exception(e)
Exception: Ansible playbook failed. See Ansible logs for details.