mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-29 04:51:16 +08:00
Add RestartSec to koschei units
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
- config
|
||||
- service
|
||||
|
||||
- name: install systemd config files
|
||||
- name: install systemd config files (memory)
|
||||
copy: >
|
||||
src=systemd-memory-limit.conf
|
||||
dest=/etc/systemd/system/{{ item }}.service.d/memory-limit.conf
|
||||
@@ -38,6 +38,18 @@
|
||||
- config
|
||||
- service
|
||||
|
||||
- name: install systemd config files (restart)
|
||||
template: >
|
||||
src=systemd-restart.conf.j2
|
||||
dest=/etc/systemd/system/{{ item }}.service.d/restart.conf
|
||||
with_items: "{{ koschei_backend_services }}"
|
||||
notify:
|
||||
- reload systemd
|
||||
tags:
|
||||
- koschei
|
||||
- config
|
||||
- service
|
||||
|
||||
- name: install config files
|
||||
template: >
|
||||
src="{{ item }}.j2"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
[Service]
|
||||
{% if env == 'staging' %}
|
||||
RestartSec=600
|
||||
{% else %}
|
||||
RestartSec=10
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user