handle ubuntu's sftp path

main
Ricard Illa 2022-09-04 18:38:12 +02:00
parent 4ac046a93b
commit 3bff74a403
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 7 additions and 2 deletions

View File

@ -108,9 +108,14 @@ X11Forwarding no
# override default of no subsystems
{% if ansible_distribution == "OpenBSD" %}
Subsystem sftp /usr/libexec/sftp-server
Subsystem sftp /usr/libexec/sftp-server
{% elif ansible_distribution == "Alpine" %}
Subsystem sftp /usr/lib/ssh/sftp-server
{% elif ansible_distribution == "Ubuntu" %}
Subsystem sftp /usr/lib/openssh/sftp-server
{% else %}
Subsystem sftp /usr/lib/ssh/sftp-server
# I don't know what OS that is, Ansible guessed on using the same config as Alpine
Subsystem sftp /usr/lib/ssh/sftp-server
{% endif %}
# Example of overriding settings on a per-user basis