mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-02 15:39:57 +00:00
- Load proxy in fullstack - Simplify config merging logic - Improve handler flushing and container config update Context: https://chatgpt.com/share/692dc9d4-a884-800f-85e5-e92471c7b52b
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
- name: "load docker, db and proxy for {{ application_id }}"
|
|
include_role:
|
|
name: sys-stk-full-stateful
|
|
vars:
|
|
docker_compose_flush_handlers: false
|
|
|
|
- when: NEXTCLOUD_WHITEBOARD_ENABLED | bool
|
|
block:
|
|
- name: "Create '{{ NEXTCLOUD_WHITEBOARD_SERVICE_DIRECTORY }}' Directory"
|
|
file:
|
|
path: "{{ NEXTCLOUD_WHITEBOARD_SERVICE_DIRECTORY }}"
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: "Deploy Whiteboard Dockerfile to '{{ NEXTCLOUD_WHITEBOARD_SERVICE_DOCKERFILE }}'"
|
|
template:
|
|
src: "Dockerfiles/Whiteboard.j2"
|
|
dest: "{{ NEXTCLOUD_WHITEBOARD_SERVICE_DOCKERFILE }}"
|
|
notify: docker compose build
|
|
|
|
- name: "create {{ NEXTCLOUD_HOST_CONF_ADD_PATH }}"
|
|
file:
|
|
path: "{{ NEXTCLOUD_HOST_CONF_ADD_PATH }}"
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: "Create config files at {{ NEXTCLOUD_HOST_CONF_ADD_PATH }}"
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: "{{ NEXTCLOUD_HOST_CONF_ADD_PATH }}/{{ item | basename | regex_replace('\\.j2$', '') }}"
|
|
owner: "{{ NEXTCLOUD_DOCKER_USER_ID }}"
|
|
group: "{{ NEXTCLOUD_DOCKER_USER_ID }}"
|
|
loop: "{{ lookup('fileglob', role_path ~ '/templates/config/*.j2', wantlist=True) }}"
|
|
notify: docker compose up
|
|
|
|
- name: create internal nextcloud nginx configuration
|
|
template:
|
|
src: "docker.conf.j2"
|
|
dest: "{{ NEXTCLOUD_HOST_NGINX_PATH }}"
|
|
notify: docker compose up
|