mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 07:18:09 +02:00
Optimized services
This commit is contained in:
@@ -25,16 +25,6 @@
|
|||||||
dest: "{{ NGINX.FILES.CONFIGURATION }}"
|
dest: "{{ NGINX.FILES.CONFIGURATION }}"
|
||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
|
|
||||||
- name: Include health dependencies
|
|
||||||
include_role:
|
|
||||||
name: "{{ item }}"
|
|
||||||
loop:
|
|
||||||
- sys-ctl-hlth-webserver
|
|
||||||
- sys-ctl-hlth-csp
|
|
||||||
vars:
|
|
||||||
# Extra flush is for performance reasons not necessary
|
|
||||||
flush_handlers: false
|
|
||||||
|
|
||||||
- name: Include openresty
|
- name: Include openresty
|
||||||
# Outside of run_once block is necessary for handler loading
|
# Outside of run_once block is necessary for handler loading
|
||||||
# Otherwise the when: condition from the block is added to the handlers
|
# Otherwise the when: condition from the block is added to the handlers
|
||||||
@@ -50,3 +40,12 @@
|
|||||||
# Flush openresty handler on first run, so that openresty is up, before openresty related handlers are triggered
|
# Flush openresty handler on first run, so that openresty is up, before openresty related handlers are triggered
|
||||||
flush_handlers: true
|
flush_handlers: true
|
||||||
when: run_once_svc_prx_openresty is not defined
|
when: run_once_svc_prx_openresty is not defined
|
||||||
|
|
||||||
|
- name: Include health dependencies
|
||||||
|
include_role:
|
||||||
|
name: "{{ item }}"
|
||||||
|
loop:
|
||||||
|
- sys-ctl-hlth-webserver
|
||||||
|
- sys-ctl-hlth-csp
|
||||||
|
vars:
|
||||||
|
flush_handlers: false
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
- include_role:
|
- include_role:
|
||||||
name: sys-service
|
name: sys-service
|
||||||
vars:
|
vars:
|
||||||
system_service_on_calendar: "{{ SYS_SCHEDULE_HEALTH_CSP_CRAWLER }}"
|
system_service_on_calendar: "{{ SYS_SCHEDULE_HEALTH_CSP_CRAWLER }}"
|
||||||
system_service_timer_enabled: true
|
system_service_timer_enabled: true
|
||||||
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
|
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}"
|
||||||
|
system_service_tpl_timeout_start_sec: 15min
|
||||||
|
Reference in New Issue
Block a user