Merge "backup: minor fixes"
This commit is contained in:
commit
309daf9482
@ -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
|
||||
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user