zuul-jobs/roles/add-authorized-keys/tasks/main.yaml
mhuin 77a07ffca1 role: Inject public keys in case of failure
Add a role that injects given public keys on a build's node set
if the build fails. This is intended to be used with zuul's
`autohold` command so that privileged users can SSH into the node set
without having to use Zuul's ansible user's private key.

Change-Id: I963e82f32a99cacea663792049cb39453e776ece
2018-02-28 10:39:07 +00:00

8 lines
194 B
YAML

- name: Enable access via build key on all nodes
authorized_key:
user: "{{ ansible_ssh_user }}"
state: present
key: "{{ item.public_key }}"
with_items:
- "{{ public_keys }}"