Merge "backup: minor fixes"

This commit is contained in:
Zuul 2019-08-12 23:43:29 +00:00 committed by Gerrit Code Review
commit 309daf9482
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@
- name: Configure ssh for backup server
blockinfile:
path: /root/.ssh/ssh_config
path: /root/.ssh/config
create: true
block: |
Host {{ item }}
@ -41,7 +41,7 @@
- name: Accept hostkey of backup server
known_hosts:
state: present
key: '{{ item }} ecdsa-sha2-nistp256 {{ hostvars[item]["ansible_ssh_host_key_ed25519_public"] }}'
key: '{{ item }} ssh-ed25519 {{ hostvars[item]["ansible_ssh_host_key_ed25519_public"] }}'
name: '{{ item }}'
with_inventory_hostnames: backup-server

View File

@ -53,7 +53,7 @@ def test_backup_host_config(host):
f = host.file('/root/.ssh/id_backup_ed25519')
assert f.exists
f = host.file('/root/.ssh/ssh_config')
f = host.file('/root/.ssh/config')
assert f.exists
assert f.contains('Host backup01.region.provider.opendev.org')