1
resposta

Erro na instalação do awx

TASK [install-awx : Install awx] ***********************************************************************************************************fatal: [192.168.25.188]: FAILED! => {"changed": true, "cmd": ["ansible-playbook", "-i", "/tmp/awx/installer/inventoryng", 
"/tmp/awx/installer/install.yml"], "delta": "0:19:09.702366", "end": "2021-04-10 02:14:53.721873", "msg": "non-zero return code", "rc": 2, 
"start": "2021-04-10 01:55:44.019507", "stderr": "", "stderr_lines": [], "stdout": "\nPLAY [Build and deploy AWX] 
****************************************************\n\nTASK [Gathering Facts] *********************************************************\nok: 
[localhost]\n\nTASK [check_vars : admin_password should be defined] ***************************\nok: [localhost] => {\n    \"changed\": false,\n   
\"msg\": \"All assertions passed\"\n}\n\nTASK [check_vars : include_tasks] **********************************************\nskipping: [
localhost]\n\nTASK [check_vars : include_tasks] **********************************************\nincluded: 
/tmp/awx/installer/roles/check_vars/tasks/check_docker.yml for localhost\n\nTASK [check_vars : postgres_data_dir should be defined] 
************************\nok: [localhost] => {\n    \"changed\": false,\n    \"msg\": \"All assertions passed\"\n}\n\nTASK [image_build : Set global 
version if not provided] ************************\nskipping: [localhost]\n\nTASK [image_build : Verify awx-logos directory exists for official install]
 ****\nskipping: [localhost]\n\nTASK [image_build : Copy logos 
for inclusion in sdist] *************************\nskipping: [localhost]\n\nTASK [image_build : Set awx image name] 
****************************************\nskipping: [localhost]\n\nTASK [image_build : Render Dockerfile] 
*****************************************\nskipping: [localhost]\n\nTASK [image_build : Build AWX image] 
*******************************************\nskipping: [localhost]\n\nTASK [image_build : Tag awx images as latest] 
**********************************\nskipping: [localhost] => (item=awx) \n\nTASK [image_push : Authenticate with Docker registry if registry 
password given] ***\nskipping: [localhost]\n\nTASK [image_push : Remove awx image] *******************************************\nskipping: 
[localhost]\n\nTASK [image_push : Tag and push awx image to registry] *************************\nskipping: [localhost]\n\nTASK [image_push : Set 
full image path for Registry] ***************************\nskipping: [localhost]\n\nTASK [kubernetes : Generate broadcast websocket secret] 
************************\nskipping: [localhost]\n\nTASK [kubernetes : fail] *******************************************************\nskipping: 
[localhost]\n\nTASK [kubernetes : include_tasks] **********************************************\nskipping: [localhost] => (item=openshift_auth.yml) 
\nskipping: [localhost] => (item=openshift.yml) \n\nTASK [kubernetes : include_tasks] **********************************************\nskipping: 
[localhost] => (item=kubernetes_auth.yml) \nskipping: [localhost] => (item=kubernetes.yml) \n\nTASK [kubernetes : Use kubectl or oc] 
******************************************\nskipping: [localhost]\n\nTASK [kubernetes : set_fact] 
***************************************************\nskipping: [localhost]\n\nTASK [kubernetes : Record deployment size] 
*************************************\nskipping: [localhost]\n\nTASK [kubernetes : Set expected post-deployment Replicas value] ****************\nskipping: [localhost]\n\nTASK [kubernetes : Delete existing Deployment (or StatefulSet)] ****************\nskipping: 
[localhost]\n\nTASK [kubernetes : Get Postgres Service Detail] ********************************\nskipping: [localhost]\n\nTASK [kubernetes : 
Template PostgreSQL Deployment (OpenShift)] *****************\nskipping: [localhost]\n\nTASK [kubernetes : Deploy and Activate Postgres 
(OpenShift)] *******************\nskipping: [localhost]\n\nTASK [kubernetes : Create Temporary Values File (Kubernetes)] 
******************\nskipping: [localhost]\n\nTASK [kubernetes : Populate Temporary Values File (Kubernetes)] ****************\nskipping: 
[localhost]\n\nTASK [kubernetes : Deploy and Activate Postgres (Kubernetes)] ******************\nskipping: 
...
no attribute 'username'\"], \"stdout\": \"\", \"stdout_lines\": []}", "", "PLAY RECAP *********************************************************************", 
"localhost                  : ok=19   changed=10   unreachable=0    failed=1    skipped=73   rescued=0    ignored=1   "]}

Não cabe todo o erro. Vi que outras pessoas ja tiveram o mesmo problema mas ele continua sem uma solução.

1 resposta

Jaqueline, resolvi esse problema utilizando o https://github.com/dmoraesrs/170 como repositório do GIT, como você utilizou o padrão ele apresenta esse erro, pois está em uma versão nova que utiliza kubernetes.

Eu troquei o repositório pelo https://github.com/dmoraesrs/170 e rodei, apresentou um erro no final devido eu ter iniciado com kubernetes, mas rebootei a VM e quando ela subiu o AWX está instalado e OK.