Why Is My Ansible Tower Upgrade Failing at TASK[preflight : Preflight check - check Tower license type] with SECRET_KEY = file('/etc/tower/SECRET_KEY', 'rb').read().strip()", "NameError: name 'file' is not defined" ?
Issue
When upgrading Ansible Tower 3.4 to later version, you may run into the following issue:
" SECRET_KEY = file('/etc/tower/SECRET_KEY', 'rb').read().strip()", "NameError: name 'file' is not defined"], "stdout": "
Environment
- Upgrading from Ansible Tower 3.4 to a later version
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.