Today, we have a setup where all of our playbooks, roles, etc are owned and run by root on our ‘management instance’. Some important key files are protected/encrypted in the root home directory that playbooks need to access at times - this is why we root owns this. To allow others to run certain playbooks, we have given them specific sudo access for those exact commands, put them in scripts and version controlled them.
Our ideal world is to have two groups of users:
- Can deploy, start/stop components via playbooks across the board without specific whitelisting (but not access the root keys)
- Users in groups that allow them to run certain playbooks but not others
Just wondering how other people are managing this?