{"repo":"johanmeiring/ansible-sftp","free":true,"listed":false,"github":"https://github.com/johanmeiring/ansible-sftp","clone":"git clone https://github.com/johanmeiring/ansible-sftp.git","description":"SFTP server role for Ansible","language":"Shell","stars":131,"topics":["ansible","galaxy-roles","sftp"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"SFTP-Server An Ansible role which configures an OpenSSH server for chrooted SFTP access. The role is built in such a way that it will not unnecessarily alter a user's OpenSSH customisations. Instead, it simply changes the crucial bits that it needs to, and adds the rest of its configuration in the form of a custom config block (OpenSSH's lack of some form of conf.d/ support forces this behaviour). Requirements It is advisable that scp if ssh be set to true in the ssh connection section of your ansible.cfg file, seeing as how Ansible uses SFTP for file transfers by default, and you can easily lock yourself out of your server's SFTP by using this role. The SCP fallback will continue to work. Example config: Other than that, only Ansible itself is required. Tested using Ansible 11 and 12. Works on Ubuntu 24.04, untested on other versions. Some work has been done on supporting RHEL, though this is not currently officially supported by the original author (further contributions are obviously welcome ;-) Role Variables The following role variables are relevant: - sftp home partition : The partition where SFTP users' home directories will be located. Defaults to \"/home\". - sftp group name : The name of the Unix group to which all SFTP users must belong. Defaults to \"sftpusers\". - sftp directories : A list of directories that need to be created automatically by default for all SFTP user. Defaults to a blank list (i.e. \"[]\"). - Values can be plain strings, or dictionaries containing n","default_branch":null,"files":null,"tree":[],"storefront":"/r/johanmeiring","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/johanmeiring/ansible-sftp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}