mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-08-29 12:03:14 +00:00
They were hard-wrapped at 80 characters, broke mid-parenthesis, and spent lines restating what the code below them does. Rewrapped at natural boundaries instead, with the narration dropped and only the reasons, gotchas and surprises kept. Section dividers stay - they delineate long plays rather than narrate them. Comments only; no scenario behaviour changes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SEH3vxYSQ5SV4N5z61eyGT
42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
# SPDX-FileCopyrightText: 2026 Slavi Pantaleev
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
# The devture base roles carry the variables this role reads, the same way they do when
|
|
# the playbook runs. `matrix-base` is deliberately NOT included: it does far more than this
|
|
# role needs, and what it would supply comes from molecule-shared/playbook-context.yml.
|
|
- name: Include roles for matrix-reminder-bot 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 matrix-reminder-bot 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
|
|
|
|
# The role installs the unit but does not start it; in the playbook that is
|
|
# `systemd_service_manager`'s job.
|
|
- name: Ensure matrix-reminder-bot 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 matrix-bot-matrix-reminder-bot systemd service is started
|
|
ansible.builtin.systemd_service:
|
|
name: matrix-bot-matrix-reminder-bot.service
|
|
state: started
|