Increase start and stop timeout limits

This commit is contained in:
2023-04-20 17:14:24 +02:00
parent 377113c098
commit 2e1ca1d1b6
9 changed files with 252 additions and 109 deletions

View File

@@ -106,7 +106,6 @@
generate_systemd:
path: /home/containers/.config/systemd/user/
restart_policy: on-failure
time: 3600
names: true
new: true
@@ -134,7 +133,6 @@
generate_systemd:
path: /home/containers/.config/systemd/user/
restart_policy: on-failure
time: 3600
names: true
new: true
@@ -185,8 +183,8 @@
SMTP_SECURE: "{{ vault_smtp_protocol }}"
SMTP_PORT: "{{ vault_smtp_port }}"
SMTP_AUTHTYPE: "None"
SMTP_NAME: ""
SMTP_PASSWORD: ""
SMTP_NAME: "{{ vault_smtp_auth_name }}"
SMTP_PASSWORD: "{{ vault_smtp_password }}"
MAIL_FROM_ADDRESS: "{{ vault_smtp_from }}"
MAIL_DOMAIN: "{{ vault_smtp_domain }}"
TRUSTED_PROXIES: "traefik"
@@ -196,11 +194,42 @@
generate_systemd:
path: /home/containers/.config/systemd/user/
restart_policy: on-failure
requires: [container-db_nextcloud, container-redis_nextcloud]
time: 3600
requires: [container-db_nextcloud.service, container-redis_nextcloud.service]
names: true
new: true
- name: Change start timeout limit
become_user: containers
become: true
community.general.ini_file:
path: "/home/containers/.config/systemd/user/container-{{ item }}.service"
section: Service
option: TimeoutStartSec
value: 3600
mode: "0664"
state: "present"
no_extra_spaces: true
loop:
- nextcloud
- redis_nextcloud
- db_nextcloud
- name: Change stop timeout limit
become_user: containers
become: true
community.general.ini_file:
path: "/home/containers/.config/systemd/user/container-{{ item }}.service"
section: Service
option: TimeoutStopSec
value: 3600
mode: "0664"
state: "present"
no_extra_spaces: true
loop:
- nextcloud
- redis_nextcloud
- db_nextcloud
- name: Start containers at boot
become_user: containers
become: true