mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-09-15 04:13:15 +00:00
The third shape: a non-mautrix bridge. It confirms the scaffolding is not mautrix-specific, and it is laid out differently enough to be worth having - everything sits directly under the base path rather than in config/ and data/ subdirectories, the owner and homeserver URL are passed on the command line rather than through a config file, so the unit is where they can be checked, and identd optionally binds host port 113. matrix-base's matrix_server_fqn_* family moved into the shared context; 18 of the roles here read one of them. Three roles now, three shapes - HTTP receiver, mautrix bridge, non-mautrix bridge - and the scaffolding took no per-shape special-casing beyond each role's own variables. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
# SPDX-FileCopyrightText: 2026 Slavi Pantaleev
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
- name: Include roles for heisenbridge Molecule tests
|
|
hosts: all
|
|
become: true
|
|
vars_files:
|
|
- "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') }}/../../../molecule-shared/playbook-context.yml"
|
|
gather_facts: true
|
|
tasks:
|
|
- name: Include roles for heisenbridge Molecule tests
|
|
ansible.builtin.include_role:
|
|
name: "{{ role_name }}"
|
|
public: true
|
|
loop:
|
|
- com.devture.ansible.role.playbook_help
|
|
- com.devture.ansible.role.systemd_docker_base
|
|
- "custom/{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
|
|
loop_control:
|
|
loop_var: role_name
|
|
|
|
- name: Ensure heisenbridge is started
|
|
hosts: all
|
|
become: true
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Ensure systemd daemon is reloaded
|
|
ansible.builtin.systemd_service:
|
|
daemon_reload: true
|
|
|
|
- name: Ensure the heisenbridge systemd service is started
|
|
ansible.builtin.systemd_service:
|
|
name: matrix-heisenbridge.service
|
|
state: started
|