Greetings,
I’m writing some web based system management utilities. Having the application fire ansible playbooks seems perfect and a natural direction to go. PHP-Ansible (https://github.com/maschmann/php-ansible) works really well provided I set things up so that my www-data user (the nginx owner) is set up with a valid shell and can run the playbooks.
Yes, I am very aware that allowing a shell on the www-data user is a very bad practice.
What are some alternatives to the “let the web server user run playbooks” aproach? I’ve got to be missing something fundamental here.
Many thanks for any thoughts anyone might have.
-goat