diff --git a/proftpd/README.md b/proftpd/README.md index 4b2faa95..1fcb4910 100644 --- a/proftpd/README.md +++ b/proftpd/README.md @@ -12,5 +12,7 @@ Main variables are : * `proftpd_hostname`: hostname (default: `ansible_hostname`) * `proftpd_fqdn`: fully qualified domain name (default: `ansible_fqdn`) +* `proftpd_default_address` : address for the server to listen on (default: `[]`) +* `proftpd_port` : port for the control socket (default: `21`) The full list of variables (with default values) can be found in `defaults/main.yml`. diff --git a/proftpd/defaults/main.yml b/proftpd/defaults/main.yml index 5355ea43..3dc9511c 100644 --- a/proftpd/defaults/main.yml +++ b/proftpd/defaults/main.yml @@ -1,3 +1,5 @@ --- proftpd_hostname: "{{ ansible_hostname }}" proftpd_fqdn: "{{ ansible_fqdn }}" +proftpd_default_address: [] +proftpd_port: "21" diff --git a/proftpd/templates/evolinux.conf.j2 b/proftpd/templates/evolinux.conf.j2 index d6e8b565..8a810a99 100644 --- a/proftpd/templates/evolinux.conf.j2 +++ b/proftpd/templates/evolinux.conf.j2 @@ -15,6 +15,10 @@ PassivePorts 60000 61000 UseReverseDNS off IdentLookups off TimesGMT off +Port {{ proftpd_port }} +{% if proftpd_default_address != [] %} +DefaultAddress {{ proftpd_default_address | join(' ') }} +{% endif %} # Local permissions DefaultRoot ~