vsftpd.conf.j2 747 B

123456789101112131415161718192021222324252627
  1. # Vsftpd configuration
  2. # {{ ansible_managed }}
  3. connect_from_port_20={{ 'YES' if vsftpd_connect_from_port_20 else 'NO' }}
  4. listen={{ 'YES' if vsftpd_listen else 'NO' }}
  5. pam_service_name=vsftpd
  6. syslog_enable={{ 'YES' if vsftpd_syslog_enable else 'NO' }}
  7. anonymous_enable={{ 'YES' if vsftpd_anonymous_enable else 'NO' }}
  8. {% if vsftpd_anon_root is defined %}
  9. anon_root={{ vsftpd_anon_root }}
  10. {% endif %}
  11. local_enable={{ 'YES' if vsftpd_local_enable else 'NO' }}
  12. {% if vsftpd_local_root is defined %}
  13. local_root={{ vsftpd_local_root }}
  14. {% endif %}
  15. local_umask=022
  16. write_enable={{ 'YES' if vsftpd_write_enable else 'NO' }}
  17. chroot_local_user={{ 'YES' if vsftpd_chroot_local_user else 'NO' }}
  18. pasv_enable=Yes
  19. pasv_min_port=21000
  20. pasv_max_port=21020