mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-07 18:05:09 +00:00
General optimations
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
- name: "For '{{ application_id }}': Set database_application_id (Needed due to lazzy loading issue)"
|
||||
set_fact:
|
||||
database_application_id: "{{ application_id }}"
|
||||
database_application_id: "{{ application_id }}"
|
||||
database_application_type: "{{ database_type }}"
|
||||
|
||||
- name: "For '{{ application_id }}': Load database variables"
|
||||
include_vars: "{{ item }}"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# run_once_sys_stk_front_proxy: deactivated
|
||||
|
||||
- name: Front bootstrap
|
||||
- name: Bootstrap Frontend Nase
|
||||
include_role:
|
||||
name: sys-stk-front-base
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
include_role:
|
||||
name: sys-util-csp-cert
|
||||
|
||||
- name: "Copy nginx config to '{{ front_proxy_domain_conf_dst }}'"
|
||||
- name: "Copy NGINX ('{{ domain }}') config to '{{ front_proxy_domain_conf_dst }}'"
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: "{{ front_proxy_domain_conf_dst }}"
|
||||
@@ -28,7 +28,7 @@
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
||||
- name: Restart nginx if site is down
|
||||
- name: Restart NGINX if site is down
|
||||
command:
|
||||
cmd: "true"
|
||||
notify: restart openresty
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: docker restart
|
||||
- name: Ensure Docker daemon is running on host
|
||||
ansible.builtin.service:
|
||||
name: docker.service
|
||||
state: restarted
|
||||
|
||||
@@ -14,17 +14,21 @@
|
||||
- name: "Include tasks to create directories"
|
||||
include_tasks: 04_directories.yml
|
||||
|
||||
- name: Include OpenResty (Once)
|
||||
- name: Load OpenResty
|
||||
include_tasks: "utils/load_app.yml"
|
||||
vars:
|
||||
load_app_id: svc-prx-openresty
|
||||
load_app_id: svc-prx-openresty
|
||||
docker_compose_flush_handlers: false # Prevent deploy until initial Config is created
|
||||
|
||||
- name: Create NGINX Base Config
|
||||
- name: Deploy OpenResty NGINX Base Configuration
|
||||
template:
|
||||
src: nginx.conf.j2
|
||||
dest: "{{ NGINX.FILES.CONFIGURATION }}"
|
||||
notify: restart openresty
|
||||
|
||||
- name: Flush OpenResty Base Setup
|
||||
meta: flush_handlers
|
||||
|
||||
- name: Include health dependencies
|
||||
include_role:
|
||||
name: "{{ item }}"
|
||||
@@ -32,6 +36,4 @@
|
||||
- sys-ctl-hlth-webserver
|
||||
- sys-ctl-hlth-csp
|
||||
|
||||
- meta: flush_handlers
|
||||
|
||||
- include_tasks: utils/once/flag.yml
|
||||
|
||||
Reference in New Issue
Block a user