Files
computer-playbook/roles/web-app-akaunting/tasks/main.yml
Kevin Veen-Birkenbach feee3fd71f Fix false negatives in integration test for unused vars
Updated tests/integration/test_vars_usage_in_yaml.py:
- Variables immediately followed by '(' are now treated as function calls,
  not as set variables. This prevents false errors.
- Fixed detection of redirect_domain_mappings so it is no longer flagged
  as unused.

See: https://chatgpt.com/share/68c3542d-f44c-800f-a483-b3e43739f315
2025-09-12 00:59:14 +02:00

20 lines
642 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
- 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