aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-10-25 00:05:09 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-10-25 00:05:09 +0200
commit1a6930d6d6e3f9079fbecd80ce79a197d2404229 (patch)
treee544050efabd91e41053aea9481a41033a8a4db0
parente920a10a5c15b53683ee5caff122ec9378032cd5 (diff)
downloadansible_collection-1a6930d6d6e3f9079fbecd80ce79a197d2404229.tar.gz
ftp add chroot settings
-rw-r--r--galaxy.yml2
-rw-r--r--roles/ftp/defaults/main.yml1
-rw-r--r--roles/ftp/templates/pure-ftpd.conf.j22
3 files changed, 3 insertions, 2 deletions
diff --git a/galaxy.yml b/galaxy.yml
index 2aa90e4..4f6e470 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -1,6 +1,6 @@
namespace: kompetenzbolzen
name: stuff
-version: 0.5.3
+version: 0.5.4
readme: README.md
authors:
- Jonas Gunz <himself@jonasgunz.de>
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