mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Add support ssh configs from /etc/openssh.
In Altlinux system config dir for openssh is /etc/openssh.
This commit is contained in:
@@ -536,6 +536,8 @@ class Facts(object):
|
||||
keydir = '/etc/ssh'
|
||||
else:
|
||||
keydir = '/etc'
|
||||
if self.facts['distribution'] == 'Altlinux':
|
||||
keydir = '/etc/openssh'
|
||||
else:
|
||||
keydir = '/etc/ssh'
|
||||
|
||||
|
||||
@@ -119,6 +119,7 @@ def not_in_host_file(self, host):
|
||||
host_file_list.append(user_host_file)
|
||||
host_file_list.append("/etc/ssh/ssh_known_hosts")
|
||||
host_file_list.append("/etc/ssh/ssh_known_hosts2")
|
||||
host_file_list.append("/etc/openssh/ssh_known_hosts")
|
||||
|
||||
hfiles_not_found = 0
|
||||
for hf in host_file_list:
|
||||
|
||||
Reference in New Issue
Block a user