mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 13:11:58 +08:00
copr: automatically restart frontend httpd after failure
This commit is contained in:
@@ -91,6 +91,18 @@
|
||||
backup: yes
|
||||
notify: restart apache
|
||||
|
||||
- name: When httpd is OOM killed or otherwise failed, start it again
|
||||
ini_file:
|
||||
path: /usr/lib/systemd/system/httpd.service
|
||||
section: Service
|
||||
option: "{{ item.option }}"
|
||||
value: "{{ item.value }}"
|
||||
backup: yes
|
||||
with_items:
|
||||
- { option: "Restart", value: "on-failure" }
|
||||
- { option: "RestartSec", value: "5s" }
|
||||
notify: restart apache
|
||||
|
||||
- include_role:
|
||||
name: keytab/service
|
||||
vars:
|
||||
|
||||
Reference in New Issue
Block a user