Merge "Fix some errors with the replace-keys role"

This commit is contained in:
Jenkins 2017-07-01 00:58:50 +00:00 committed by Gerrit Code Review
commit 40d7e32a26
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@
key: "{{ lookup('file', zuul_temp_ssh_key + '.pub') }}"
- name: Remove all keys from local agent
command: ssh-add -d
command: ssh-add -D
delegate_to: localhost
- name: Add back temp key

View File

@ -1,5 +1,6 @@
- name: Check to see if ssh key was already created for this build
stat: "{{ zuul_temp_ssh_key }}"
stat:
path: "{{ zuul_temp_ssh_key }}"
register: zuul_temp_ssh_key_stat
delegate_to: localhost
failed_when: false