Browse Source

proftpd: add default_address + port

evolinux-users
Bruno TATU 4 years ago
parent
commit
7decf35994
  1. 2
      proftpd/README.md
  2. 2
      proftpd/defaults/main.yml
  3. 4
      proftpd/templates/evolinux.conf.j2

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

2
proftpd/defaults/main.yml

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

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

Loading…
Cancel
Save