prototypes: xci: Look for SSH keys in $HOME directory 07/34607/2
authorMarkos Chandras <mchandras@suse.de>
Wed, 10 May 2017 15:48:20 +0000 (16:48 +0100)
committerMarkos Chandras <mchandras@suse.de>
Thu, 11 May 2017 22:42:13 +0000 (23:42 +0100)
We no longer run everything as root so we need to look for SSH keys
in the appropriate home directory.

Change-Id: Iae1f7eb80059e7d369c8e0c8b6c33c6a4f673f94
Signed-off-by: Markos Chandras <mchandras@suse.de>
prototypes/xci/playbooks/configure-opnfvhost.yml

index af90c9d..8656ff9 100644 (file)
@@ -99,4 +99,4 @@
     - name: Generate authorized_keys
       shell: "/bin/cat {{ OPNFV_SSH_HOST_KEYS_PATH }}/opnfv/root/.ssh/id_rsa.pub >> ../file/authorized_keys"
     - name: Append public keys to authorized_keys
-      shell: "/bin/cat /root/.ssh/id_rsa.pub >> ../file/authorized_keys"
+      shell: "/bin/cat {{ ansible_env.HOME }}/.ssh/id_rsa.pub >> ../file/authorized_keys"