[IR plugin] Ensure auto ssh key exchange in the test host

Tests executed on tripleo setups require ssh key exchange to connect
from the test host to itself

Change-Id: I1862bc2e5269ea6f269e2a17e127957f7d279849
This commit is contained in:
Eduardo Olivares 2022-08-11 12:03:57 +02:00
parent fb0d57e810
commit dab9e75d5e
1 changed files with 5 additions and 0 deletions

View File

@ -5,3 +5,8 @@
source {{ stackrc_file }}
openstack quota set --{{ item.key }} {{ item.value }} $OS_PROJECT_NAME
with_dict: "{{ quota | default({}) }}"
- name: ensure auto ssh key exchange in test host
shell: |
ssh -o PasswordAuthentication=no $(whoami)@localhost hostname || cat ~/.ssh/id_*.pub >> ~/.ssh/authorized_keys
ignore_errors: yes