alter service units

This commit is contained in:
Antonio J. Delgado 2023-01-29 21:02:23 +02:00
parent f1291caa14
commit 0957545045

View file

@ -32,10 +32,38 @@
option: dburi option: dburi
value: "{{ dbmail_db_driver }}://{{ dbmail_db_user }}:{{ dbmail_db_password }}@{{ dbmail_db_host }}:{{ dbmail_db_port }}/{{ dbmail_db_name }}" value: "{{ dbmail_db_driver }}://{{ dbmail_db_user }}:{{ dbmail_db_password }}@{{ dbmail_db_host }}:{{ dbmail_db_port }}/{{ dbmail_db_name }}"
- name: Make services start infinite for IMAP
ini_file:
path: /lib/systemd/system/dbmail-imapd.service
section: Service
option: TimeoutStartSec
value: infinity
- name: Make services start infinite for POP
ini_file:
path: /lib/systemd/system/dbmail-pop3d.service
section: Service
option: TimeoutStartSec
value: infinity
- name: Make services start infinite for LMTP
ini_file:
path: /lib/systemd/system/dbmail-lmtpd.service
section: Service
option: TimeoutStartSec
value: infinity
- name: Make services start infinite for timsieved
ini_file:
path: /lib/systemd/system/dbmail-timsieved.service
section: Service
option: TimeoutStartSec
value: infinity
- name: Ensure service units are enabled and started - name: Ensure service units are enabled and started
systemd: systemd:
daemon_reload: true daemon_reload: true
name: "{{ item }}" name: "{{ item }}"
enabled: true enabled: true
state: started state: started
loop: "{{ dbmail_systemd_units }}" loop: "{{ dbmail_systemd_units }}"