vsftpd
free - developer - shariful islam
Supported Version : v1.0.1
YAML Config
tasks:
- name: vsftpd installing...
vsftpd:
destroy: False
vsftp_install: True
vsftp_configure: True
vsftp_ssl: True
vsftpd_user:
- username: ftpuser1
password: password1
- username: ftpuser2
password: password2
- username: ftpuser3
password: password3
vsftpd_config:
config_your_choice: False
settings:
listen: "YES"
listen_ipv6: "NO"
anonymous_enable: "NO"
ascii_upload_enable: "YES"
ascii_download_enable: "YES"
ls_recurse_enable: "YES"
use_localtime: "YES"
write_enable: "YES"
seccomp_sandbox: "NO"
chroot_local_user: "YES"
chroot_list_enable: "YES"
chroot_list_file: "/etc/vsftpd/chroot_list"
tasks
is a list of tasks to be executed on the target servers.The first task, "vsftpd installing...," uses the
vsftpd
opsshell module to manage vsftpd installation and configuration.vsftpd
module settings:destroy: False
: This indicates that existing vsftpd configurations will not be destroyed during the role execution. [ True, False ]vsftp_install: True
: This installs vsftpd on the target servers. [ True, False ]vsftp_configure: True
: This configures vsftpd "True" then execution the config.
[ True, False ]
vsftp_ssl: True
: SSL support is enabled for vsftpd.
vsftpd_user
specifies a list of FTP users and their passwords. In this case, three users are defined:ftpuser1
,ftpuser2
, andftpuser3
, each with their respective passwords.vsftpd_config
is used to define vsftpd configuration settings.config_your_choice: True
: This indicates that the specified settings should be applied from expert.settings
is a dictionary of vsftpd configuration settings. The following settings are defined:listen: "YES"
: Enables listening for incoming FTP connections.listen_ipv6: "NO"
: Disables listening on IPv6.anonymous_enable: "NO"
: Disables anonymous FTP access.ascii_upload_enable: "YES"
: Enables ASCII mode for file uploads.ascii_download_enable: "YES"
: Enables ASCII mode for file downloads.ls_recurse_enable: "YES"
: Enables recursive directory listings.use_localtime: "YES"
: Uses local time for file timestamps.write_enable: "YES"
: Enables write access for authenticated FTP users.seccomp_sandbox: "NO"
: Disables seccomp sandboxing.chroot_local_user: "YES"
: Chroots local users for additional security.chroot_list_enable: "YES"
: Enables chroot_list functionality.chroot_list_file: "/etc/vsftpd/chroot_list"
: Specifies the location of the chroot list file.
If you want install vsftp server (FTP) as our choice then apply bellow config of your yaml.
tasks:
- name: vsftpd installing...
vsftpd:
vsftp_install: True
vsftp_configure: True
vsftp_ssl: True
vsftpd_user:
- username: ftpuser1
password: password1
- username: ftpuser2
password: password2
vsftpd_config:
config_your_choice: True
Output:

Last updated
Was this helpful?