I have Bamboo agents that runs scripts under a “bamboo” user. Now this bamboo user needs to run ansible playbooks on a newly-created server. However, this newly-created server does NOT have the bamboo user’s ssh public key yet. So what is the recommended way of adding bamboo user’s public key to the newly-created server’s /home/bamboo/.ssh/authorized_keys file? Do I just create an image with it there already?
If you have credentials to the host, you might create parametrized bamboo job like “bootstrap.box” , which will execute small playbook to configure new box for bamboo (like add keys, perhaps create some user and so on)