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
24 lines
777 B
YAML
24 lines
777 B
YAML
---
|
|
- name: "Akaunting | Check if first run (marker exists?)"
|
|
ansible.builtin.stat:
|
|
path: "{{ AKAUNTING_SETUP_MARKER }}"
|
|
register: akaunting_marker_stat
|
|
|
|
- name: "Akaunting | Decide if setup should be enabled"
|
|
ansible.builtin.set_fact:
|
|
akaunting_setup_enabled: "{{ not akaunting_marker_stat.stat.exists }}"
|
|
|
|
- name: "For '{{ application_id }}': load docker, db and proxy"
|
|
include_role:
|
|
name: sys-stk-full-stateful
|
|
vars:
|
|
# Forward flag into compose templating
|
|
cmp_extra_facts:
|
|
akaunting_setup_enabled: "{{ akaunting_setup_enabled }}"
|
|
|
|
- name: "Akaunting | Create first-run marker to disable future setup"
|
|
ansible.builtin.file:
|
|
path: "{{ AKAUNTING_SETUP_MARKER }}"
|
|
state: touch
|
|
mode: "0644"
|
|
when: akaunting_setup_enabled | bool |