copr-backend: prefer ssh over ipv4 to copr_hypervisor

This commit is contained in:
Pavel Raiskup 2023-03-30 10:37:03 +02:00
parent 3fc94c29fc
commit 96f1d5184a
2 changed files with 5 additions and 0 deletions

View file

@ -5,3 +5,6 @@ Host *
ServerAliveInterval 20
ServerAliveCountMax 5
ConnectTimeout 60
Host{% for host in groups["copr_hypervisor"] %}{{- ' ' + host }}{% endfor %}
AddressFamily inet

View file

@ -65,6 +65,8 @@
- name: setup copr user ssh config file
copy: src="ssh_config" dest=/home/copr/.ssh/config owner=copr group=copr mode=600
tags:
- copr_ssh_config
- name: check known_hosts file
command: stat /home/copr/.ssh/known_hosts