mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-09 18:28:10 +02:00
Fix semi-stateless run_once label and load both docker-compose & openresty handlers
See: https://chatgpt.com/share/68d6f2f3-59a4-800f-b20e-ed1c7df9e2ff
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# run_once_sys_stk_full_stateless: deactivated
|
||||
# run_once_sys_stk_semi_stateless: deactivated
|
||||
|
||||
- name: "sys-stk-front-base"
|
||||
include_role:
|
||||
|
@@ -11,10 +11,13 @@
|
||||
- name: "Load variables from {{ DOCKER_VARS_FILE }} for {{ role_name }}/{{ application_id }}"
|
||||
include_vars: "{{ DOCKER_VARS_FILE }}"
|
||||
|
||||
- name: "Load docker compose handlers"
|
||||
- name: "Load docker compose & openresty handlers"
|
||||
include_tasks: "{{ [ playbook_dir, 'tasks/utils/load_handlers.yml' ] | path_join }}"
|
||||
vars:
|
||||
handler_role_name: "docker-compose"
|
||||
loop:
|
||||
- docker-compose
|
||||
- svc-prx-openresty
|
||||
loop_control:
|
||||
loop_var: handler_role_name
|
||||
|
||||
- name: "Include tasks to create directories"
|
||||
include_tasks: 04_directories.yml
|
||||
@@ -23,7 +26,7 @@
|
||||
template:
|
||||
src: nginx.conf.j2
|
||||
dest: "{{ NGINX.FILES.CONFIGURATION }}"
|
||||
notify: docker compose up
|
||||
notify: restart openresty
|
||||
|
||||
- name: Include openresty
|
||||
# Outside of run_once block is necessary for handler loading
|
||||
|
Reference in New Issue
Block a user