Why am I getting 'sudo: sorry, you must have a tty to run sudo' while installing Ansible Tower?
Issue
During the migration of database task, an error is received:
TASK [awx_install : Migrate the Tower database schema (may take awhile when upgrading).] ***
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "sudo: sorry, you must have a tty to run sudo\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
