77a07ffca1
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
8 lines
194 B
YAML
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 }}"
|