zuul-jobs/roles/add-authorized-keys/tasks/main.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 }}"