mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-08-29 20:13:13 +00:00
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
# SPDX-FileCopyrightText: 2026 Slavi Pantaleev
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
- name: Include roles for Postmoogle 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 Postmoogle 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; systemd_service_manager does that in the
|
|
# full playbook.
|
|
- name: Ensure Postmoogle 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 Postmoogle systemd service is started
|
|
ansible.builtin.systemd_service:
|
|
name: matrix-postmoogle.service
|
|
state: started
|