root@utaxanst:/tmp/awsinstall/awx-install # ansible-playbook -i localhost, -c local awx_install.yml
PLAY [all] **************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************
ok: [localhost]
TASK [copy prereq check script] *****************************************************************************************************
changed: [localhost]
TASK [execute prereq check script] **************************************************************************************************
changed: [localhost]
TASK [remove prereq check script] ***************************************************************************************************
changed: [localhost]
TASK [check if X11.base.lib is installed] *******************************************************************************************
changed: [localhost]
TASK [check if rsyslog.base is installed] *******************************************************************************************
changed: [localhost]
TASK [check if krb5.client.rte is installed] ****************************************************************************************
changed: [localhost]
TASK [update all packages] **********************************************************************************************************
ok: [localhost]
TASK [install required packages] ****************************************************************************************************
changed: [localhost]
TASK [make a temp install directory] ************************************************************************************************
changed: [localhost]
TASK [copy our required packages] ***************************************************************************************************
changed: [localhost] => (item=linux_compat-0.1.2-1.aix7.2.ppc.rpm)
changed: [localhost] => (item=redis-5.0.9-1aix.aix7.2.ppc.rpm)
changed: [localhost] => (item=supervisor-4.2.0-2aix.aix7.2.noarch.rpm)
changed: [localhost] => (item=xmlsec1-1.2.28-1.aix7.2.ppc.rpm)
changed: [localhost] => (item=xmlsec1-openssl-1.2.28-1.aix7.2.ppc.rpm)
TASK [install our packages] *********************************************************************************************************
changed: [localhost]
TASK [get shells] *******************************************************************************************************************
changed: [localhost]
TASK [set shells] *******************************************************************************************************************
changed: [localhost]
TASK [copy awx rpm] *****************************************************************************************************************
changed: [localhost]
TASK [install awx.rpm] **************************************************************************************************************
changed: [localhost]
TASK [remove temporary directory] ***************************************************************************************************
changed: [localhost]
TASK [add user nginx in group awx] **************************************************************************************************
changed: [localhost]
TASK [initialize postgresql] ********************************************************************************************************
[WARNING]: Consider using 'become', 'become_method', and 'become_user' rather than running su
changed: [localhost]
TASK [create postgresql init script] ************************************************************************************************
changed: [localhost]
TASK [create redis init script] *****************************************************************************************************
changed: [localhost]
TASK [create supervisord init script] ***********************************************************************************************
changed: [localhost]
TASK [start postgresql] *************************************************************************************************************
changed: [localhost]
TASK [check awx user in postgres] ***************************************************************************************************
changed: [localhost]
TASK [create awx user in postgres] **************************************************************************************************
changed: [localhost]
TASK [check awx database in postgres] ***********************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["su", "-", "postgres", "-c", "/opt/freeware/bin/psql -lqt | cut -d\\| -f1 | grep -qw awx"], "delta": "0:00:00.076952", "end": "2021-04-28 13:57:56.039685", "msg": "non-zero return code", "rc": 1, "start": "2021-04-28 13:57:55.962733", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
...ignoring
TASK [create awx database] **********************************************************************************************************
changed: [localhost]
TASK [create database structures] ***************************************************************************************************
changed: [localhost]
TASK [create superuser] *************************************************************************************************************
changed: [localhost]
TASK [create some preload data] *****************************************************************************************************
changed: [localhost]
TASK [provision instance] ***********************************************************************************************************
changed: [localhost]
TASK [register queue] ***************************************************************************************************************
changed: [localhost]
TASK [get hostname] *****************************************************************************************************************
changed: [localhost]
TASK [ensure we have right hostname in /etc/tower/settings.py] **********************************************************************
changed: [localhost]
TASK [set the notification host url] ************************************************************************************************
changed: [localhost]
TASK [ensure correct permissions on /var/run/tower] *********************************************************************************
changed: [localhost]
TASK [start redis] ******************************************************************************************************************
changed: [localhost]
TASK [start nginx] ******************************************************************************************************************
changed: [localhost]
TASK [start supervisord] ************************************************************************************************************
changed: [localhost]
TASK [debug] ************************************************************************************************************************
ok: [localhost] => {
    "msg": [
        "1. Login to your AIX server",
        "2. Create a password for the AWX superuser using the following command:",
        "su - awx -c awx-manage changepassword admin",
        "3. Start the browser and go to:",
        "
https://utaxanst/#/login"
    ]
}
PLAY RECAP **************************************************************************************************************************
localhost                  : ok=40   changed=37   unreachable=0    failed=0    skipped=0    rescued=0    ignored=1
root@utaxanst:/tmp/awsinstall/awx-install # su - awx -c awx-manage changepassword admin
Changing password for user 'admin'
Password:
Password (again):
Password changed successfully for user 'admin'
There is RED section which probably mean that there is problem with posgresql db?
TASK [check awx database in postgres] ***********************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["su", "-", "postgres", "-c", "/opt/freeware/bin/psql -lqt | cut -d\\| -f1 | grep -qw awx"], "delta": "0:00:00.076952", "end": "2021-04-28 13:57:56.039685", "msg": "non-zero return code", "rc": 1, "start": "2021-04-28 13:57:55.962733", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
...ignoring
B.