Ansible Tower has two critical components that control its Python dependency path:
- The "awx" user
- The /var/lib/awx/venv/ansible/bin/activate virtual environment
If you're going to successfully run complex pip deployments, you must deploy into this virtual environment as this user.
[cladmin@esvmcl36 ~]$ sudo su - awx -bash-4.2$ . /var/lib/awx/venv/ansible/bin/activate (ansible)-bash-4.2$ pip install /var/lib/awx/snmp-packages/*; Processing ./snmp-packages/ply-3.10.tar.gz Processing ./snmp-packages/pyasn1-0.2.3.tar.gz Processing ./snmp-packages/pycryptodome-3.4.5.tar.gz Processing ./snmp-packages/pysmi-0.0.7.tar.gz Processing ./snmp-packages/pysnmp-4.3.4.tar.gz
more info: Tower and virtualenv