I’ve run into a bit of a brick wall with Ansible.
As part of my playbook I’ve created an “application daemon” user. This user is responsible for running any software deployed to the provisioned machine. Its not a sudoer.
I’m trying to execute some post deployment tasks and one of them is to run a program I’ve installed as the application user. Everything else in the playbook is executed as root (using sudo from vagrant user) e.g.