2022-10-11 09:18:54 +02:00
|
|
|
---
|
|
|
|
- name: Ensure installation of software
|
|
|
|
include_tasks: install.yml
|
|
|
|
|
|
|
|
- name: Ensure configuration of MySQL database
|
|
|
|
include_tasks: configure_mysql_database.yml
|
|
|
|
when:
|
|
|
|
- dbmail_db_driver == 'mysql'
|
|
|
|
- "'127.0.0.' in dbmail_db_host or dbmail_db_host == 'localhost' or dbmail_db_host == ansible_host"
|
|
|
|
|
|
|
|
- name: Ensure configuration of dbmail
|
|
|
|
include_tasks: configure_dbmail.yml
|
|
|
|
|
|
|
|
- name: Ensure configuration of UFW for dbmail
|
|
|
|
include_tasks: configure_ufw.yml
|
|
|
|
when: configure_ufw
|
|
|
|
|
|
|
|
- name: Ensure certificates are configured
|
|
|
|
include_tasks: configure_certificates.yml
|
2022-10-13 14:37:22 +02:00
|
|
|
when: dbmail_configuration['POP']['tls_port'] > 0 or dbmail_configuration['IMAP']['tls_port'] > 0 or dbmail_configuration['SIEVE']['tls_port'] > 0
|
|
|
|
|
|
|
|
- name: Ensure user's are configured in dbmail
|
2022-10-14 07:32:55 +02:00
|
|
|
include_tasks: configure_dbmail_users.yml
|