Matrix Docker Ansible eploy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # SPDX-FileCopyrightText: 2026 Slavi Pantaleev
- #
- # SPDX-License-Identifier: AGPL-3.0-or-later
-
- ---
- dependency:
- name: galaxy
- options:
- requirements-file: requirements.yml
- force: true
- driver:
- name: docker
- platforms:
- - name: mautrix-gvoice-${MOLECULE_DISTRO:-ubuntu2604}-default
- image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2604}-ansible:latest"
- command: ${MOLECULE_DOCKER_COMMAND:-""}
- volumes:
- - /sys/fs/cgroup:/sys/fs/cgroup:rw
- cgroupns_mode: host
- privileged: true
- pre_build_image: true
- provisioner:
- name: ansible
- config_options:
- defaults:
- callback_result_format: yaml
- inventory:
- group_vars:
- all:
- matrix_bridge_mautrix_gvoice_container_network: mautrix-gvoice-molecule
-
- # This is the Matrix-side startup boundary. No Google Voice account or
- # third-party credentials are supplied or exercised.
- matrix_bridge_mautrix_gvoice_homeserver_address: http://matrix.molecule.local:8008
- matrix_bridge_mautrix_gvoice_homeserver_domain: molecule.local
-
- matrix_bridge_mautrix_gvoice_database_engine: postgres
- matrix_bridge_mautrix_gvoice_database_hostname: matrix-postgres-molecule
- matrix_bridge_mautrix_gvoice_database_name: molecule_gvoice
- matrix_bridge_mautrix_gvoice_database_username: molecule_gvoice
- matrix_bridge_mautrix_gvoice_database_password: molecule_pg_password_70df2c
-
- matrix_bridge_mautrix_gvoice_appservice_token: molecule_gvoice_as_token_29c74a
- matrix_bridge_mautrix_gvoice_homeserver_token: molecule_gvoice_hs_token_f48b63
-
- # Non-default values prove the role carries configuration through.
- matrix_bridge_mautrix_gvoice_appservice_bot_username: molecule-gvoicebot
- matrix_bridge_mautrix_gvoice_command_prefix: "!molecule-gvoice"
- matrix_bridge_mautrix_gvoice_logging_level: info
- matrix_bridge_mautrix_gvoice_federate_rooms: false
- matrix_bridge_mautrix_gvoice_bridge_personal_filtering_spaces: false
- matrix_bridge_mautrix_gvoice_backfill_enabled: false
- matrix_bridge_mautrix_gvoice_backfill_max_initial_messages: 19
- matrix_bridge_mautrix_gvoice_backfill_max_catchup_messages: 31
- matrix_bridge_mautrix_gvoice_backfill_unread_hours_threshold: 67
- matrix_bridge_mautrix_gvoice_backfill_threads_max_initial_messages: 11
- matrix_bridge_mautrix_gvoice_provisioning_shared_secret: molecule_gvoice_provisioning_secret_563ca1
- matrix_bridge_mautrix_gvoice_network_displayname_template: "{% raw %}{{ or .Name .Contact.Name }} (Molecule){% endraw %}"
- matrix_bridge_mautrix_gvoice_appservice_username_template: "{% raw %}molecule_gvoice_{{.}}{% endraw %}"
-
- # Traefik itself is not started; the bridge consumes the public address and
- # Docker consumes the rendered labels.
- matrix_bridge_mautrix_gvoice_exposure_enabled: true
- matrix_bridge_mautrix_gvoice_exposure_hostname: gvoice-api.molecule.local
- matrix_bridge_mautrix_gvoice_exposure_path_prefix: /bridges/gvoice-api
- matrix_bridge_mautrix_gvoice_scheme: http
- matrix_bridge_mautrix_gvoice_container_labels_traefik_entrypoints: web
- matrix_bridge_mautrix_gvoice_container_labels_additional_labels: |
- molecule.gvoice.coverage=enabled
-
- matrix_bridge_mautrix_gvoice_base_path: /matrix/mautrix-gvoice
- matrix_bridge_mautrix_gvoice_config_path: /matrix/mautrix-gvoice/config
- matrix_bridge_mautrix_gvoice_data_path: /matrix/mautrix-gvoice/data
- env:
- # Workaround for https://github.com/ansible/molecule/issues/4391
- ANSIBLE_ROLES_PATH: ${MOLECULE_PROJECT_DIRECTORY}/../..:/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:${ANSIBLE_HOME:-~/.ansible}/roles
- scenario:
- test_sequence:
- - dependency
- - cleanup
- - destroy
- - syntax
- - create
- - prepare
- - converge
- - idempotence
- - verify
- - cleanup
- - destroy
- verifier:
- name: ansible
|