From f4e36709716ef8cc46af74ed00bd746f4ef07f1a Mon Sep 17 00:00:00 2001 From: German Eichberger Date: Fri, 3 Aug 2018 22:13:42 +0200 Subject: [PATCH] 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 --- tests/test-octavia.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-octavia.yml b/tests/test-octavia.yml index d53d245c..cc97583d 100644 --- a/tests/test-octavia.yml +++ b/tests/test-octavia.yml @@ -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