Had a somewhat curious situation: need to run a task in Ansible in different user accounts, but I don't have sudo or su access, only ssh access for every account. Took me a moment to figure out how to do that.
Continue reading "Run Ansible tasks as different remote user"
It took me a while to find out, why this backup script would not start. Finally, i found this error message: "sudo: sorry, you must have a tty to run sudo". The sudo call is required to execute "clustat" and find out, which machine is the current master.
sudo is configured to execute "clustat" without password and works fine on the command line - so what's wrong here?
Continue reading "sudo: sorry, you must have a tty to run sudo"