proftpd: add default_address + port
This commit is contained in:
parent
d70e541fb7
commit
7decf35994
|
@ -12,5 +12,7 @@ Main variables are :
|
||||||
|
|
||||||
* `proftpd_hostname`: hostname (default: `ansible_hostname`)
|
* `proftpd_hostname`: hostname (default: `ansible_hostname`)
|
||||||
* `proftpd_fqdn`: fully qualified domain name (default: `ansible_fqdn`)
|
* `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`.
|
The full list of variables (with default values) can be found in `defaults/main.yml`.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
---
|
---
|
||||||
proftpd_hostname: "{{ ansible_hostname }}"
|
proftpd_hostname: "{{ ansible_hostname }}"
|
||||||
proftpd_fqdn: "{{ ansible_fqdn }}"
|
proftpd_fqdn: "{{ ansible_fqdn }}"
|
||||||
|
proftpd_default_address: []
|
||||||
|
proftpd_port: "21"
|
||||||
|
|
|
@ -15,6 +15,10 @@ PassivePorts 60000 61000
|
||||||
UseReverseDNS off
|
UseReverseDNS off
|
||||||
IdentLookups off
|
IdentLookups off
|
||||||
TimesGMT off
|
TimesGMT off
|
||||||
|
Port {{ proftpd_port }}
|
||||||
|
{% if proftpd_default_address != [] %}
|
||||||
|
DefaultAddress {{ proftpd_default_address | join(' ') }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# Local permissions
|
# Local permissions
|
||||||
DefaultRoot ~
|
DefaultRoot ~
|
||||||
|
|
Loading…
Reference in a new issue