mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
- Removed outdated Installation.md (manual plugin instructions no longer needed) - Added schema/main.yml with validation for secret_pin - Added config.php.j2 template to manage DB + admin config - Refactored tasks/main.yml to deploy config.php instead of legacy docker-compose - Removed setup-domain.yml (TLS/domain handling moved to core roles) - Updated docker-compose.yml.j2 to mount config.php and use new vars - Cleaned up vars/main.yml: standardized MYBB_* variable names, added MYBB_SECRET_PIN, config paths, and container port See ChatGPT conversation: https://chatgpt.com/share/68b0ae26-93ec-800f-8785-0da7c9303090
25 lines
724 B
YAML
25 lines
724 B
YAML
- name: "load docker, db and proxy for {{ application_id }}"
|
|
include_role:
|
|
name: cmp-db-docker-proxy
|
|
vars:
|
|
docker_compose_flush_handlers: false
|
|
proxy_extra_configuration: "sub_filter '{{MYBB_DOMAIN}}' '{{ MYBB_DOMAIN }}';"
|
|
|
|
- name: "create {{ MYBB_NGINX_CONF_DIR_HOST }} and parent directories"
|
|
file:
|
|
path: "{{ MYBB_NGINX_CONF_DIR_HOST }}"
|
|
state: directory
|
|
mode: "0755"
|
|
recurse: yes
|
|
|
|
- name: "Deploy {{ MYBB_NGINX_DEFAULT_CONF_HOST }}"
|
|
template:
|
|
src: "default.conf.j2"
|
|
dest: "{{ MYBB_NGINX_DEFAULT_CONF_HOST }}"
|
|
notify: docker compose up
|
|
|
|
- name: "Deploy {{ MYBB_CONFIG_HOST_PATH }}"
|
|
template:
|
|
src: "config.php.j2"
|
|
dest: "{{ MYBB_CONFIG_HOST_PATH }}"
|
|
mode: '0644' |