Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '_support/benchmarking/roles/deploy/handlers/main.yml')
-rw-r--r--_support/benchmarking/roles/deploy/handlers/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/_support/benchmarking/roles/deploy/handlers/main.yml b/_support/benchmarking/roles/deploy/handlers/main.yml
new file mode 100644
index 000000000..d5d2716a9
--- /dev/null
+++ b/_support/benchmarking/roles/deploy/handlers/main.yml
@@ -0,0 +1,16 @@
+---
+- name: scan SSH keys
+ command: "ssh-keyscan {{ item }}"
+ register: ssh_keys
+ loop: "{{ [tfstate.outputs.gitaly_ssh_ip.value] | list + [tfstate.outputs.client_ssh_ip.value] }}"
+ listen: add hostkeys
+ retries: 15
+ until: ssh_keys is not failed
+ delay: 10
+
+- name: add SSH keys to known hosts
+ known_hosts:
+ name: "{{ item.item }}"
+ key: "{{ item.stdout }}"
+ loop: "{{ ssh_keys.results }}"
+ listen: add hostkeys