From 1a6930d6d6e3f9079fbecd80ce79a197d2404229 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 25 Oct 2021 00:05:09 +0200 Subject: ftp add chroot settings --- roles/ftp/defaults/main.yml | 1 + roles/ftp/templates/pure-ftpd.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/ftp/defaults/main.yml b/roles/ftp/defaults/main.yml index e5142ba..ec1d654 100644 --- a/roles/ftp/defaults/main.yml +++ b/roles/ftp/defaults/main.yml @@ -1,5 +1,6 @@ --- ftp: + chroot: no ldap: enable: false host: 'ldap.example.com' diff --git a/roles/ftp/templates/pure-ftpd.conf.j2 b/roles/ftp/templates/pure-ftpd.conf.j2 index 9faccf5..011d051 100644 --- a/roles/ftp/templates/pure-ftpd.conf.j2 +++ b/roles/ftp/templates/pure-ftpd.conf.j2 @@ -1,6 +1,6 @@ # Managed by Ansible. Do NOT change. -ChrootEveryone yes +ChrootEveryone {{ ftp.chroot }} BrokenClientsCompatibility no MaxClientsNumber 50 Daemonize no -- cgit v1.2.3