Merge "Only run once our delegate_to locahost commands"
This commit is contained in:
commit
51f2ed4036
@ -1,6 +1,7 @@
|
|||||||
- name: Create Temp SSH key
|
- name: Create Temp SSH key
|
||||||
command: ssh-keygen -t rsa -b 1024 -N '' -f {{ zuul_temp_ssh_key }}
|
command: ssh-keygen -t rsa -b 1024 -N '' -f {{ zuul_temp_ssh_key }}
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
run_once: true
|
||||||
|
|
||||||
- name: Distribute it to all nodes
|
- name: Distribute it to all nodes
|
||||||
authorized_key:
|
authorized_key:
|
||||||
@ -11,10 +12,12 @@
|
|||||||
- name: Remove all keys from local agent
|
- name: Remove all keys from local agent
|
||||||
command: ssh-add -D
|
command: ssh-add -D
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
run_once: true
|
||||||
|
|
||||||
- name: Add back temp key
|
- name: Add back temp key
|
||||||
command: ssh-add {{ zuul_temp_ssh_key }}
|
command: ssh-add {{ zuul_temp_ssh_key }}
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
run_once: true
|
||||||
|
|
||||||
- name: Verify we can still SSH to all nodes
|
- name: Verify we can still SSH to all nodes
|
||||||
ping:
|
ping:
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
path: "{{ zuul_temp_ssh_key }}"
|
path: "{{ zuul_temp_ssh_key }}"
|
||||||
register: zuul_temp_ssh_key_stat
|
register: zuul_temp_ssh_key_stat
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
run_once: true
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Create a new key in workspace based on build UUID
|
- name: Create a new key in workspace based on build UUID
|
||||||
|
Loading…
Reference in New Issue
Block a user