zuul-base-jobs/playbooks/base/cleanup.yaml

9 lines
259 B
YAML

- hosts: all
roles:
- remove-build-sshkey
tasks:
- name: Reinstall saved authorized_keys
copy:
src: "{{ zuul.executor.work_root }}/{{ inventory_hostname }}_authorized_keys"
dest: "{{ ansible_user_dir }}/.ssh/authorized_keys"