Files
computer-playbook/roles/web-app-taiga/tasks/02_manager_ops.yml
kevinveenbirkenbachandClaude Opus 5 a46348b6cf refactor(handlers): bind notify to a listen topic, not to a name
A handler name was doing two jobs at once: the line an operator reads in the
play output, and the identifier a `notify:` binds to. The two pull in opposite
directions -- the log wants "restart the SSH service, with diagnostics", the
binding wants a token that survives quoting, YAML flow style and a shell
round-trip -- and a name that changes for readability silently changes which
handler runs.

Every handler that a notify reached by name now carries a `listen:` with that
exact wording, so the binding is explicit before anything is renamed. The
topics themselves become identifiers: `compose up` reads `compose-up`,
`Restart NFS ganesha` reads `restart-nfs-ganesha`, 22 of them across both
sides of every notify. Where the topic is assembled at runtime, both branches
moved together: the conditional in sys-service carries two literals, and the
LDAP renderer interpolates `import-{{ folder }}-ldif-files`, which is what
makes those handlers reachable at all.

Freed from the binding, the names take the emoji prefix every other task line
already has.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-16 03:38:42 +02:00

47 lines
1.6 KiB
YAML

---
- name: "📋 copy taiga gateway config"
template: # nocheck: stack-host-template (taiga compose dir, not project nginx tree)
src: "taiga-gateway/taiga.conf.j2"
dest: "{{ [compose_repository_path, 'taiga-gateway', 'taiga.conf'] | path_join }}"
notify: compose-up
- name: "📄 render Dockerfile.taiga-back for custom auth-enabled backend image"
stack_host_template:
src: "Dockerfile.backend.j2"
dest: "{{ [compose_repository_path, 'Dockerfile.taiga-back'] | path_join }}"
when: TAIGA_PLUGINS_ENABLED | bool
notify: compose-up
- name: "📄 render Dockerfile.taiga-front for custom OIDC frontend image"
stack_host_template:
src: "Dockerfile.frontend.j2"
dest: "{{ [compose_repository_path, 'Dockerfile.taiga-front'] | path_join }}"
when: TAIGA_OIDC_ENABLED | bool
notify: compose-up
- name: "📋 Copy taiga config.append.py (OIDC/LDAP settings appended at runtime)"
stack_host_template:
src: "settings/config.append.py.j2"
dest: "{{ TAIGA_CONFIG_APPEND_PATH }}"
when: TAIGA_PLUGINS_ENABLED | bool
notify: compose-up
- name: "📋 copy taiga urls.py (OIDC URL routing)"
stack_host_template:
src: "settings/urls.py.j2"
dest: "{{ TAIGA_URLS_PATH }}"
when: TAIGA_OIDC_ENABLED | bool
notify: compose-up
- name: "📋 copy taiga frontend conf.json (loginFormType / contribPlugins)"
stack_host_template:
src: "settings/conf.json.j2"
dest: "{{ TAIGA_FRONTEND_CONF_PATH }}"
notify: compose-up
- name: "🚿 Flush Taiga handlers"
meta: flush_handlers
- name: "📂 Include Taiga administrator routines"
include_tasks: 01_administrator.yml