9 lines
410 B
YAML
9 lines
410 B
YAML
---
|
|
- name: Add transport for configured domains
|
|
community.mysql.mysql_query:
|
|
login_db: "{{ dbmail_db_name }}"
|
|
query: "INSERT INTO transport (domain, transport) VALUES ('{{ item }}', 'dbmail-lmtp:localhost:{{ dbmail_configuration['LMTP']['port'] }}')"
|
|
single_transaction: yes
|
|
login_unix_socket: /var/run/mysqld/mysqld.sock
|
|
ignore_errors: true
|
|
loop: "{{ dbmail_domains }}"
|