proftpd: add default_address + port

This commit is contained in:
Bruno TATU 2017-11-03 13:54:23 +01:00
parent d70e541fb7
commit 7decf35994
3 changed files with 8 additions and 0 deletions

View File

@ -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`.

View File

@ -1,3 +1,5 @@
---
proftpd_hostname: "{{ ansible_hostname }}"
proftpd_fqdn: "{{ ansible_fqdn }}"
proftpd_default_address: []
proftpd_port: "21"

View File

@ -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 ~