mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-09 02:45:17 +00:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
- name: "cleanup (if enabled)"
|
|
include_tasks: 02_cleanup.yml
|
|
when: >
|
|
MODE_CLEANUP | bool or
|
|
MODE_RESET | bool
|
|
|
|
- name: "reset (if enabled) for {{ role_name}}"
|
|
include_tasks: 03_reset.yml
|
|
when: MODE_RESET | bool
|
|
|
|
- name: "Load variables from {{ DOCKER_VARS_FILE }} for {{ role_name }}/{{ application_id }}"
|
|
include_vars: "{{ DOCKER_VARS_FILE }}"
|
|
|
|
- name: "Include tasks to create directories"
|
|
include_tasks: 04_directories.yml
|
|
|
|
- name: Load OpenResty
|
|
include_tasks: "utils/load_app.yml"
|
|
vars:
|
|
load_app_id: svc-prx-openresty
|
|
docker_compose_flush_handlers: false # Prevent deploy until initial Config is created
|
|
|
|
- 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 }}"
|
|
loop:
|
|
- sys-ctl-hlth-webserver
|
|
- sys-ctl-hlth-csp
|
|
|
|
- include_tasks: utils/once/flag.yml
|