mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Add support ssh configs from /etc/openssh.
In Altlinux system config dir for openssh is /etc/openssh.
This commit is contained in:
parent
0b32e1586d
commit
9be8ecda06
3 changed files with 10 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue