@@ -213,12 +213,7 @@ def test_backup_ssh_service_key_fingerprints(host):
in use.
"""
ansible_facts = host.ansible("setup")["ansible_facts"]
if ansible_facts['ansible_distribution_release'] == 'jessie':
key_types = ['ssh-dss', 'ssh-rsa', 'ssh-ed25519', 'ecdsa-sha2-nistp256']
elif ansible_facts['ansible_distribution_release'] == 'stretch':
key_types = ['ssh-rsa', 'ssh-ed25519', 'ecdsa-sha2-nistp256']
# Extract first non-IPv6 IP. Crude test, but it should work.
remote_ip = next(a for a in host.interface("eth1").addresses if ":" not in a)