UCLALibrary / packer-samvera

A build of Samvera/Hyrax using Packer and the 'ansible-samvera' roles
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

No tty present when using sudo to restart apache #3

Closed ksclarke closed 6 years ago

ksclarke commented 6 years ago

An upgrade to samvera-mgmt code yields the following from:

name: deploy to production directories with capistrano shell: cap -p --trace=stdout {{ cap_deployment }} deploy

"** Execute deploy:restart_apache",
    "04:53 deploy:restart_apache",
    "      01 sudo systemctl restart apache2",
    "      01 sudo",
    "      01 : ",
    "      01 no tty present and no askpass program specified",
    "      01 ",
    "cap aborted!",
ksclarke commented 6 years ago

@bess pointed out an ansible-samvera update that I hadn't yet pulled down: https://github.com/curationexperts/ansible-samvera/blob/master/roles/capistrano_setup/tasks/main.yml#L64-L66

Getting in sync with the upstream ansible-samvera solved the issue. It's good to learn one possible underlying cause of that no tty present error too since I've seen them off and on while working with / learning Ansible.