{"id":15018276,"url":"https://github.com/robertdebock/ansible-role-vsftpd","last_synced_at":"2025-10-23T17:31:36.986Z","repository":{"id":186040338,"uuid":"674513313","full_name":"robertdebock/ansible-role-vsftpd","owner":"robertdebock","description":"Install and configure vsftpd on your system.","archived":false,"fork":false,"pushed_at":"2025-01-06T12:26:38.000Z","size":46,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T04:11:35.710Z","etag":null,"topics":["ansible","application","cloud","database","development","infrastructure","linux","molecule","monitoring","networking","playbook","security","storage","system","tools","tox","vsftpd","windows"],"latest_commit_sha":null,"homepage":"https://robertdebock.nl/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertdebock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"robertdebock"}},"created_at":"2023-08-04T06:07:34.000Z","updated_at":"2025-01-06T10:07:40.000Z","dependencies_parsed_at":"2024-07-24T14:55:14.361Z","dependency_job_id":null,"html_url":"https://github.com/robertdebock/ansible-role-vsftpd","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"3ba6e5cfe4ff46a3ccdefdafd1879c5bd632105d"},"previous_names":["robertdebock/ansible-role-vsftpd"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-vsftpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-vsftpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-vsftpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-vsftpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertdebock","download_url":"https://codeload.github.com/robertdebock/ansible-role-vsftpd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237869026,"owners_count":19379247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","application","cloud","database","development","infrastructure","linux","molecule","monitoring","networking","playbook","security","storage","system","tools","tox","vsftpd","windows"],"created_at":"2024-09-24T19:51:46.412Z","updated_at":"2025-10-23T17:31:36.980Z","avatar_url":"https://github.com/robertdebock.png","language":"Jinja","funding_links":["https://github.com/sponsors/robertdebock"],"categories":[],"sub_categories":[],"readme":"# [Ansible role vsftpd](#ansible-role-vsftpd)\n\nInstall and configure vsftpd on your system.\n\n|GitHub|GitLab|Downloads|Version|\n|------|------|---------|-------|\n|[![github](https://github.com/robertdebock/ansible-role-vsftpd/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-vsftpd/actions)|[![gitlab](https://gitlab.com/robertdebock-iac/ansible-role-vsftpd/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-vsftpd)|[![downloads](https://img.shields.io/ansible/role/d/robertdebock/vsftpd)](https://galaxy.ansible.com/robertdebock/vsftpd)|[![Version](https://img.shields.io/github/release/robertdebock/ansible-role-vsftpd.svg)](https://github.com/robertdebock/ansible-role-vsftpd/releases/)|\n\n## [Example Playbook](#example-playbook)\n\nThis example is taken from [`molecule/default/converge.yml`](https://github.com/robertdebock/ansible-role-vsftpd/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release.\n\n```yaml\n---\n- name: Converge\n  hosts: all\n  become: true\n  gather_facts: true\n\n  roles:\n    - role: robertdebock.vsftpd\n```\n\nThe machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/robertdebock/ansible-role-vsftpd/blob/master/molecule/default/prepare.yml):\n\n```yaml\n---\n- name: Prepare\n  hosts: all\n  become: true\n  gather_facts: false\n\n  roles:\n    - role: robertdebock.bootstrap\n```\n\nAlso see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.\n\n## [Role Variables](#role-variables)\n\nThe default values for the variables are set in [`defaults/main.yml`](https://github.com/robertdebock/ansible-role-vsftpd/blob/master/defaults/main.yml):\n\n```yaml\n---\n# defaults file for vsftpd\n\n# Allow anonymous FTP? (Beware - allowed by default if you disable this).\nvsftpd_anonymous_enable: true\n\n# Enable this to allow local users to log in.\nvsftpd_local_enable: true\n\n# Enable this to enable any form of FTP write command.\nvsftpd_write_enable: true\n\n# Default umask for local users is 077. You may wish to change this to 022,\n# if your users expect that (022 is used by most other ftpd's)\nvsftpd_local_umask: \"022\"\n\n# Enable this to allow the anonymous FTP user to upload files. This only\n# has an effect if the above global write enable is activated. Also, you will\n# obviously need to create a directory writable by the FTP user.\n# When SELinux is enforcing check for SE bool allow_ftpd_anon_write, allow_ftpd_full_access\nvsftpd_anon_upload_enable: false\n\n# Enable this if you want the anonymous FTP user to be able to create\n# new directories.\nvsftpd_anon_mkdir_write_enable: false\n\n# Activate directory messages - messages given to remote users when they\n# go into a certain directory.\nvsftpd_dirmessage_enable: true\n\n# Activate logging of uploads/downloads.\nvsftpd_xferlog_enable: true\n\n# Make sure PORT transfer connections originate from port 20 (ftp-data).\nvsftpd_connect_from_port_20: true\n\n# If you want, you can arrange for uploaded anonymous files to be owned by\n# a different user. Note! Using \"root\" for uploaded files is not\n# recommended!\nvsftpd_chown_uploads: false\nvsftpd_chown_username: whoever\n\n# You may override where the log file goes if you like. The default is shown\n# below.\nvsftpd_xferlog_file: /var/log/xferlog\n\n# If you want, you can have your log file in standard ftpd xferlog format.\n# Note that the default log file location is /var/log/xferlog in this case.\nvsftpd_xferlog_std_format: true\n\n# You may change the default value for timing out an idle session.\nvsftpd_idle_session_timeout: 600\n\n# You may change the default value for timing out a data connection.\nvsftpd_data_connection_timeout: 120\n\n# It is recommended that you define on your system a unique user which the\n# ftp server can use as a totally isolated and unprivileged user.\nvsftpd_nopriv_user: ftpsecure\n\n# Enable this and the server will recognise asynchronous ABOR requests. Not\n# recommended for security (the code is non-trivial). Not enabling it,\n# however, may confuse older FTP clients.\nvsftpd_async_abor_enable: true\n\n# By default the server will pretend to allow ASCII mode but in fact ignore\n# the request. Turn on the below options to have the server actually do ASCII\n# mangling on files when in ASCII mode. The vsftpd.conf(5) man page explains\n# the behaviour when these options are disabled.\n# Beware that on some FTP servers, ASCII support allows a denial of service\n# attack (DoS) via the command \"SIZE /big/file\" in ASCII mode. vsftpd\n# predicted this attack and has always been safe, reporting the size of the\n# raw file.\n# ASCII mangling is a horrible feature of the protocol.\nvsftpd_ascii_upload_enable: false\nvsftpd_ascii_download_enable: false\n\n# You may fully customise the login banner string:\nvsftpd_ftpd_banner: \"Welcome to blah FTP service.\"\n\n# You may specify a file of disallowed anonymous e-mail addresses. Apparently\n# useful for combatting certain DoS attacks.\nvsftpd_deny_email_enable: true\n# (default follows)\nvsftpd_banned_email_file: /etc/vsftpd/banned_emails\n\n# You may specify an explicit list of local users to chroot() to their home\n# directory. If chroot_local_user is YES, then this list becomes a list of\n# users to NOT chroot().\n# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that\n# the user does not have write access to the top level directory within the\n# chroot)\nvsftpd_chroot_local_user: false\nvsftpd_chroot_list_enable: false\n# (default follows)\nvsftpd_chroot_list_file: /etc/vsftpd/chroot_list\n\n# You may activate the \"-R\" option to the builtin ls. This is disabled by\n# default to avoid remote users being able to cause excessive I/O on large\n# sites. However, some broken FTP clients such as \"ncftp\" and \"mirror\" assume\n# the presence of the \"-R\" option, so there is a strong case for enabling it.\nvsftpd_ls_recurse_enable: false\n\n# When \"listen\" directive is enabled, vsftpd runs in standalone mode and\n# listens on IPv4 sockets. This directive cannot be used in conjunction\n# with the listen_ipv6 directive.\nvsftpd_listen: false\n\n# This directive enables listening on IPv6 sockets. By default, listening\n# on the IPv6 \"any\" address (::) will accept connections from both IPv6\n# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6\n# sockets. If you want that (perhaps because you want to listen on specific\n# addresses) then you must run two copies of vsftpd with two configuration\n# files.\n# Make sure, that one of the listen options is commented !!\nvsftpd_listen_ipv6: true\n\nvsftpd_pam_service_name: vsftpd\nvsftpd_userlist_enable: true\n\n# If enabled, vsftpd will display directory listings with the time\n# in  your  local  time  zone.  The default is to display GMT. The\n# times returned by the MDTM FTP command are also affected by this\n# option.\nvsftpd_use_localtime: true\n\n# This option should be the name of a directory which is empty.  Also, the\n# directory should not be writable by the ftp user. This directory is used\n# as a secure chroot() jail at times vsftpd does not require filesystem\n# access.\nvsftpd_secure_chroot_dir: /var/run/vsftpd/empty\n\n# This option specifies the location of the RSA certificate to use for SSL\n# encrypted connections.\n# vsftpd_rsa_cert_file: /etc/ssl/certs/ssl-cert-snakeoil.pem\n# vsftpd_rsa_private_key_file: /etc/ssl/private/ssl-cert-snakeoil.key\nvsftpd_ssl_enable: false\n```\n\n## [Requirements](#requirements)\n\n- pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-vsftpd/blob/master/requirements.txt).\n\n## [State of used roles](#state-of-used-roles)\n\nThe following roles are used to prepare a system. You can prepare your system in another way.\n\n| Requirement | GitHub | GitLab |\n|-------------|--------|--------|\n|[robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-bootstrap/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap)|\n\n## [Context](#context)\n\nThis role is part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.\n\nHere is an overview of related roles:\n![dependencies](https://raw.githubusercontent.com/robertdebock/ansible-role-vsftpd/png/requirements.png \"Dependencies\")\n\n## [Compatibility](#compatibility)\n\nThis role has been tested on these [container images](https://hub.docker.com/u/robertdebock):\n\n|container|tags|\n|---------|----|\n|[Alpine](https://hub.docker.com/r/robertdebock/alpine)|all|\n|[Debian](https://hub.docker.com/r/robertdebock/debian)|all|\n|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|9|\n|[Fedora](https://hub.docker.com/r/robertdebock/fedora)|all|\n|[Ubuntu](https://hub.docker.com/r/robertdebock/ubuntu)|all|\n\nThe minimum version of Ansible required is 2.12, tests have been done on:\n\n- The previous version.\n- The current version.\n- The development version.\n\nIf you find issues, please register them on [GitHub](https://github.com/robertdebock/ansible-role-vsftpd/issues).\n\n## [License](#license)\n\n[Apache-2.0](https://github.com/robertdebock/ansible-role-vsftpd/blob/master/LICENSE).\n\n## [Author Information](#author-information)\n\n[robertdebock](https://robertdebock.nl/)\n\nPlease consider [sponsoring me](https://github.com/sponsors/robertdebock).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-vsftpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertdebock%2Fansible-role-vsftpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-vsftpd/lists"}