1e0af6779b
This change enables a kubectl connection job to just remove the zuul sshkey, without using the add-build-sshkey role which doesn't work on pod. To do that, this change moves the sshagent_remove_key task to a new role and makes add-build-sshkey use the new role. Change-Id: I5e7288592cad303df919220259f5a360bf522f64
9 lines
248 B
YAML
9 lines
248 B
YAML
---
|
|
- name: Remove master key from local agent
|
|
# The master key has a filename, all others (e.g., per-project keys)
|
|
# have "(stdin)" as a comment.
|
|
sshagent_remove_keys:
|
|
remove: '^(?!\(stdin\)).*'
|
|
delegate_to: localhost
|
|
run_once: true
|