Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

50 řádky
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 Authentication Service 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 Authentication Service 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. # The role's main task file also carries separately invoked CLI actions. Include the
  22. # validation and installation selected by the normal setup tags, without invoking them.
  23. - name: Include Matrix Authentication Service 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. - install.yml
  31. loop_control:
  32. loop_var: role_task_file
  33. # Component roles install their unit; the complete playbook's service manager starts it.
  34. - name: Ensure Matrix Authentication Service is started
  35. hosts: all
  36. become: true
  37. gather_facts: false
  38. tasks:
  39. - name: Ensure systemd daemon is reloaded
  40. ansible.builtin.systemd_service:
  41. daemon_reload: true
  42. - name: Ensure Matrix Authentication Service systemd service is started
  43. ansible.builtin.systemd_service:
  44. name: matrix-authentication-service.service
  45. state: started