I'm trying to set up a deployment pipeline that involves invoking systemctl to start and stop services. I have a shell script on the server that invokes systemctl and my build server will be invoking the shell script via remote ssh.
But systemctl requires sudo rights and therefore prompts for a password. Is there a way to invoke systemctl via remote ssh that doesn't require user interaction?