variable docker_mailserver_configure_oauth
This commit is contained in:
parent
5ca909f6b0
commit
f0239ca599
3 changed files with 15 additions and 1 deletions
|
@ -46,3 +46,9 @@ docker_mailserver_saslauthd_ldap_filter: "(&(uid=%U)(objectClass=PostfixBookMail
|
||||||
docker_mailserver_default_relay_host: ""
|
docker_mailserver_default_relay_host: ""
|
||||||
# Relai sortant par défaut (configuration par domaine)
|
# Relai sortant par défaut (configuration par domaine)
|
||||||
docker_mailserver_relay_host: ""
|
docker_mailserver_relay_host: ""
|
||||||
|
|
||||||
|
|
||||||
|
# Active la configuration oauth
|
||||||
|
# Nécessite de fournir des variables supplémentaires :
|
||||||
|
# - docker_mailserver_dovecot_oauth2_configuration
|
||||||
|
docker_mailserver_configure_oauth: false
|
||||||
|
|
|
@ -77,3 +77,9 @@
|
||||||
- { src: mailserver.vars, dest: "/opt/{{ docker_mailserver_service_id }}/" }
|
- { src: mailserver.vars, dest: "/opt/{{ docker_mailserver_service_id }}/" }
|
||||||
notify: docker-compose-up
|
notify: docker-compose-up
|
||||||
|
|
||||||
|
- name: Prepare dovecot-oauth2.conf.ext.secrets
|
||||||
|
ansible.builtin.copy:
|
||||||
|
content: "{{ docker_mailserver_dovecot_oauth2_configuration }}"
|
||||||
|
dest: "/opt/{{ docker_mailserver_service_id }}/dovecot-oauth2.conf.ext.secrets"
|
||||||
|
notify: docker-compose-up
|
||||||
|
when: docker_mailserver_configure_oauth is true
|
||||||
|
|
|
@ -35,7 +35,9 @@ services:
|
||||||
- ./jail.local:/etc/fail2ban/jail.local
|
- ./jail.local:/etc/fail2ban/jail.local
|
||||||
- ./ssl/:/tmp/ssl:ro
|
- ./ssl/:/tmp/ssl:ro
|
||||||
- ./11-mail-custom.conf:/etc/dovecot/conf.d/11-mail-custom.conf
|
- ./11-mail-custom.conf:/etc/dovecot/conf.d/11-mail-custom.conf
|
||||||
|
{% if docker_mailserver_configure_oauth is true %}
|
||||||
- ./dovecot-oauth2.conf.ext.secrets:/etc/dovecot/dovecot-oauth2.conf.ext
|
- ./dovecot-oauth2.conf.ext.secrets:/etc/dovecot/dovecot-oauth2.conf.ext
|
||||||
|
{% endif %}
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
env_file:
|
||||||
- mailserver.vars
|
- mailserver.vars
|
||||||
|
|
Loading…
Reference in a new issue