ssh-key should land in $HOME
During a gate test I discovered that the ssh key wasn't generated in /root/.ssh but /home/zuul - causing an error. This will create the key in the home directory of the user. Change-Id: Ic095d0d05342c93f6be52b7f44bf2082d2556780
This commit is contained in:
parent
56ebc6b36e
commit
f4e3670971
@ -91,7 +91,7 @@
|
||||
shell: >
|
||||
cat /dev/zero | ssh-keygen -q -N ""
|
||||
args:
|
||||
creates: /root/.ssh/id_rsa.pub
|
||||
creates: "{{ lookup('env', 'HOME') }}/.ssh/id_rsa"
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
- name: Upload key to nova
|
||||
@ -106,7 +106,7 @@
|
||||
endpoint_type: "{{ octavia_ansible_endpoint_type }}"
|
||||
state: present
|
||||
name: "octavia_key"
|
||||
public_key_file: "/root/.ssh/id_rsa.pub"
|
||||
public_key_file: "{{ lookup('env', 'HOME') }}/.ssh/id_rsa.pub"
|
||||
run_once: true
|
||||
|
||||
- name: Create a loadbalancer
|
||||
|
Loading…
x
Reference in New Issue
Block a user