Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

51 строка
1.7 KiB

  1. # SPDX-FileCopyrightText: 2026 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Include roles for matrix-client-fluffychat Molecule tests
  6. hosts: all
  7. become: true
  8. vars_files:
  9. - "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') }}/../../../molecule-shared/playbook-context.yml"
  10. gather_facts: true
  11. tasks:
  12. - name: Include base roles for matrix-client-fluffychat Molecule tests
  13. ansible.builtin.include_role:
  14. name: "{{ role_name }}"
  15. public: true
  16. loop:
  17. - com.devture.ansible.role.playbook_help
  18. - com.devture.ansible.role.systemd_docker_base
  19. loop_control:
  20. loop_var: role_name
  21. # main.yml also invokes the separately-tagged public self-check. In the full
  22. # playbook that runs only after systemd_service_manager has started services.
  23. - name: Include matrix-client-fluffychat setup task files
  24. ansible.builtin.include_role:
  25. name: "custom/{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"
  26. public: true
  27. tasks_from: "{{ role_task_file }}"
  28. loop:
  29. - validate_config.yml
  30. - setup_install.yml
  31. loop_control:
  32. loop_var: role_task_file
  33. # The component role installs the unit; the full playbook's systemd service manager
  34. # starts it. Keep the role-scoped scenario at the same boundary and start it directly.
  35. - name: Ensure matrix-client-fluffychat is started
  36. hosts: all
  37. become: true
  38. gather_facts: false
  39. tasks:
  40. - name: Ensure systemd daemon is reloaded
  41. ansible.builtin.systemd_service:
  42. daemon_reload: true
  43. - name: Ensure the matrix-client-fluffychat systemd service is started
  44. ansible.builtin.systemd_service:
  45. name: matrix-client-fluffychat.service
  46. state: started