File diff 9c0b92a5d2c6 → 6d46b300aa0b
roles/backup_server/molecule/default/tests/test_parameters_optional.py
Show inline comments
 
@@ -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']
 
    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)