diff --git a/base.yml b/base.yml index 52bc867..512ebcf 100644 --- a/base.yml +++ b/base.yml @@ -9,14 +9,14 @@ --- - hosts: ubuntu - remote_user: provision + remote_user: ansible become: true roles: - base # Clean up the system - hosts: ubuntu - remote_user: provision + remote_user: ansible become: true tasks: - name: cleanup package cache (debian and ubuntu) diff --git a/roles/base/templates/sshd_config.j2 b/roles/base/templates/sshd_config.j2 index a5185a5..31d28d4 100644 --- a/roles/base/templates/sshd_config.j2 +++ b/roles/base/templates/sshd_config.j2 @@ -26,6 +26,7 @@ IgnoreRhosts yes # Misc. options AcceptEnv LANG LC_* TCPKeepAlive yes +Subsystem sftp {{ sftp_path }} # Logging SyslogFacility AUTH diff --git a/roles/base/vars/Archlinux.yml b/roles/base/vars/Archlinux.yml index 65a65a4..7606ccc 100644 --- a/roles/base/vars/Archlinux.yml +++ b/roles/base/vars/Archlinux.yml @@ -11,3 +11,4 @@ sudo_group: wheel openssh_service: sshd openssh_package: openssh +sftp_path: /usr/lib/ssh/sftp-server diff --git a/roles/base/vars/Debian.yml b/roles/base/vars/Debian.yml index 79720e7..f864565 100644 --- a/roles/base/vars/Debian.yml +++ b/roles/base/vars/Debian.yml @@ -11,3 +11,4 @@ sudo_group: sudo openssh_service: ssh openssh_package: openssh-server +sftp_path: /usr/lib/openssh/sftp-server diff --git a/roles/base/vars/Ubuntu.yml b/roles/base/vars/Ubuntu.yml index 792ace3..581a0e7 100644 --- a/roles/base/vars/Ubuntu.yml +++ b/roles/base/vars/Ubuntu.yml @@ -11,4 +11,5 @@ sudo_group: sudo openssh_service: ssh openssh_package: openssh-server +sftp_path: /usr/lib/openssh/sftp-server ssh_port: 4422