Standard Upgrade Method

Standard Upgrade Method

In most releases of AWX-RPM, the following commands should upgrade AWX-RPM cleanly

  • CentOS
    yum update
    yum install --disablerepo='*' --enablerepo='copr:copr.fedorainfracloud.org:mrmeee:ansible-awx, base' -x *-debuginfo rh-python36*
    sudo -u awx scl enable rh-postgresql10 rh-python36 "GIT_PYTHON_REFRESH=quiet awx-manage makemigrations"
    sudo -u awx scl enable rh-postgresql10 rh-python36 "GIT_PYTHON_REFRESH=quiet awx-manage migrate"
    systemctl restart awx
  • RHEL7 x86_64
    yum update
    yum -y install --disablerepo='*' --enablerepo='copr:copr.fedorainfracloud.org:mrmeee:ansible-awx, rhel-7-server-rpms' -x *-debuginfo rh-python36*
    sudo -u awx scl enable rh-postgresql10 rh-python36 "GIT_PYTHON_REFRESH=quiet awx-manage makemigrations"
    sudo -u awx scl enable rh-postgresql10 rh-python36 "GIT_PYTHON_REFRESH=quiet awx-manage migrate"
    systemctl restart awx
  • RHEL7 ppc64le
    yum update
    yum -y install --disablerepo='*' --enablerepo='copr:copr.fedorainfracloud.org:mrmeee:ansible-awx, rhel-7-for-power-le-rpms, rhel-7-for-power-le-optional-rpms' -x *-debuginfo,*-sphinx-*,rh-python36-python-test rh-python36*
    sudo -u awx scl enable rh-postgresql10 rh-python36 "GIT_PYTHON_REFRESH=quiet awx-manage makemigrations"
    sudo -u awx scl enable rh-postgresql10 rh-python36 "GIT_PYTHON_REFRESH=quiet awx-manage migrate"
    systemctl restart awx

If you end up with some packages with overlapping files, the following should fix it, this is non-destructive, so don't be afraid to lose your data.. Just run the following command before re-running the above commands

systemctl stop awx
yum -y remove rh-python36*
yum -y install rh-python36 ansible-awx

Confirmed upgrade paths