mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
- Removed obsolete 'cmp' category, introduced 'stk' category (fa-bars-staggered icon). - Renamed roles: * cmp-db-docker → sys-stk-back-stateful * cmp-docker-oauth2 → sys-stk-back-stateless * srv-domain-provision → sys-stk-front * cmp-db-docker-proxy → sys-stk-full-stateful * cmp-docker-proxy → sys-stk-full-stateless * cmp-rdbms → sys-svc-rdbms - Updated all include_role references, vars, templates and README.md files. - Adjusted run_once comments and variable paths accordingly. - Updated all web-app roles to use new sys-stk/* and sys-svc/* roles. Conversation: https://chatgpt.com/share/68b0ba66-09f8-800f-86fc-76c47009d431
65 lines
2.0 KiB
YAML
65 lines
2.0 KiB
YAML
- name: "Validate configuration"
|
|
include_tasks: "02_validate.yml"
|
|
when: MODE_ASSERT | bool
|
|
|
|
- name: "Include JS routines"
|
|
include_tasks: "03_javascript.yml"
|
|
|
|
- name: "load docker, proxy for '{{ application_id }}'"
|
|
include_role:
|
|
name: sys-stk-full-stateless
|
|
|
|
- name: "Check if host-specific config.yaml exists in {{ DESKTOP_INVENTORY_CONFIG_PATH }}"
|
|
stat:
|
|
path: "{{ DESKTOP_INVENTORY_CONFIG_PATH }}"
|
|
delegate_to: localhost
|
|
become: false
|
|
register: config_file
|
|
|
|
- name: Load menu categories
|
|
include_vars:
|
|
file: "menu_categories.yml"
|
|
|
|
- name: Load docker cards
|
|
set_fact:
|
|
portfolio_cards: "{{ lookup('docker_cards', 'roles') }}"
|
|
|
|
- name: "Load images for applications feature simpleicons is enabled "
|
|
set_fact:
|
|
portfolio_cards: "{{ portfolio_cards | add_simpleicon_source(domains, WEB_PROTOCOL) }}"
|
|
when:
|
|
- (applications | get_app_conf(application_id, 'features.simpleicons', False))
|
|
|
|
- name: Group docker cards
|
|
set_fact:
|
|
portfolio_menu_data: "{{ lookup('docker_cards_grouped', portfolio_cards, portfolio_menu_categories) }}"
|
|
|
|
- name: Debug portfolio data
|
|
debug:
|
|
msg:
|
|
portfolio_cards: "{{ portfolio_cards }}"
|
|
portfolio_menu_categories: "{{ portfolio_menu_categories}}"
|
|
portfolio_menu_data: "{{ portfolio_menu_data }}"
|
|
service_provider: "{{ service_provider }}"
|
|
when: MODE_DEBUG | bool
|
|
|
|
- name: Copy host-specific config.yaml if it exists
|
|
template:
|
|
src: "{{ DESKTOP_INVENTORY_CONFIG_PATH }}"
|
|
dest: "{{ docker_repository_path }}/app/config.yaml"
|
|
notify: docker compose up
|
|
when: config_file.stat.exists
|
|
|
|
- name: Copy default config.yaml from the role template if host-specific file does not exist
|
|
template:
|
|
src: "config.yaml.j2"
|
|
dest: "{{ docker_repository_path }}/app/config.yaml"
|
|
notify: docker compose up
|
|
when: not config_file.stat.exists
|
|
|
|
- name: add docker-compose.yml
|
|
template:
|
|
src: docker-compose.yml.j2
|
|
dest: "{{ docker_compose.directories.instance }}docker-compose.yml"
|
|
notify: docker compose up
|