proftpd: Add options to override configs

This commit is contained in:
Ludovic Poujol 2022-09-13 16:26:10 +02:00
parent 28276b5d6f
commit 7c4a169fb8
3 changed files with 7 additions and 3 deletions

View File

@ -18,6 +18,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* webapps/nextcloud: Add compatibility with apache2, and apache2 mod_php.
* inspect-domains: Add role
* memcached: NRPE check for multi-instance setup
* proftpd: Add options to override configs
### Changed

View File

@ -3,12 +3,15 @@ proftpd_hostname: "{{ ansible_hostname }}"
proftpd_fqdn: "{{ ansible_fqdn }}"
proftpd_default_address: []
proftpd_ftp_enable: True
proftpd_ftp_override: False
proftpd_port: 21
proftpd_ftps_enable: False
proftpd_ftps_override: False
proftpd_ftps_port: 990
proftpd_ftps_cert: "/etc/ssl/certs/ssl-cert-snakeoil.pem"
proftpd_ftps_key: "/etc/ssl/private/ssl-cert-snakeoil.key"
proftpd_sftp_enable: False
proftpd_sftp_override: False
proftpd_sftp_port: 22222
proftpd_accounts: []
proftpd_accounts_final: []

View File

@ -20,7 +20,7 @@
src: evolinux.conf.j2
dest: /etc/proftpd/conf.d/z-evolinux.conf
mode: "0644"
force: no
force: "{{ proftpd_ftp_override }}"
notify: restart proftpd
when: proftpd_ftp_enable | bool
tags:
@ -31,7 +31,7 @@
src: ftps.conf.j2
dest: /etc/proftpd/conf.d/ftps.conf
mode: "0644"
force: no
force: "{{ proftpd_ftps_override }}"
notify: restart proftpd
when: proftpd_ftps_enable | bool
tags:
@ -42,7 +42,7 @@
src: sftp.conf.j2
dest: /etc/proftpd/conf.d/sftp.conf
mode: "0644"
force: no
force: "{{ proftpd_sftp_override }}"
notify: restart proftpd
when: proftpd_sftp_enable | bool
tags: