Skip to content

Commit

Permalink
Make the SFTP server location variable. Relates #2
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Sep 18, 2020
1 parent b0c5428 commit 9c68dfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ openssh_accept_env:
- LC_TIME
- XMODIFIERS

openssh_subsystem: sftp /usr/libexec/openssh/sftp-server
openssh_subsystem: sftp {{ openssh_sftp_server }}

# Restrict access to this (space separated list) of users.
# For example: `openssh_allow_users: root my_user`
Expand Down
6 changes: 6 additions & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@ _openssh_template_mode:
Suse: "640"

openssh_template_mode: "{{ _openssh_template_mode[ansible_os_family] | default(_openssh_template_mode['default']) }}"

_openssh_sftp_server:
default: /usr/libexec/openssh/sftp-server
Debian: /usr/lib/openssh/sftp-server

openssh_sftp_server: "{{ _openssh_sftp_server[ansible_os_family] | default(_openssh_sftp_server['default') }}"

0 comments on commit 9c68dfd

Please sign in to comment.