I downloaded the war file for ansible, and after changing the passwords in inventory file, i tried running the setup.sh script. But, its getting failed.
Following errors came during the setup playbook run:
TASK [preflight : Preflight check - Read in tower version] *********************
fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “msg”: “file not found: /var/lib/awx/.tower_version”}
…ignoring
TASK [migrations : Check to see if DATABASES is defined in the main settings file.] ***
fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: “grep "DATABASES = {" /etc/tower/settings.py”, “delta”: “0:00:00.004295”, “end”: “2016-08-26 07:01:06.270207”, “failed”: true, “rc”: 2, “start”: “2016-08-26 07:01:06.265912”, “stderr”: “grep: /etc/tower/settings.py: No such file or directory”, “stdout”: “”, “stdout_lines”: , “warnings”: }
…ignoring
TASK [migrations : include] ****************************************************
skipping: [localhost] => {“changed”: false, “skip_reason”: “Conditional check failed”, “skipped”: true}
TASK [migrations : Check to see if celery is already configured for RabbitMQ.] *
fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: “grep "amqp://" /etc/tower/conf.d/celeryd.py”, “delta”: “0:00:00.003558”, “end”: “2016-08-26 07:01:06.483477”, “failed”: true, “rc”: 2, “start”: “2016-08-26 07:01:06.479919”, “stderr”: “grep: /etc/tower/conf.d/celeryd.py: No such file or directory”, “stdout”: “”, “stdout_lines”: , “warnings”: }
…ignoring
Following error is coming in the end:
PLAY RECAP *********************************************************************
localhost : ok=31 changed=0 unreachable=0 failed=1
[error] Oops! An error occured while running setup.
[warn] /var/log/tower does not exist.
Setup log saved to setup.log.
How to resolve this?